[PR #1846] [CLOSED] feature: support ~/.ollama/origins as config for CORS #41951

Closed
opened 2026-04-24 21:45:24 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1846
Author: @ryansb
Created: 1/7/2024
Status: Closed

Base: mainHead: feature/cors-config


📝 Commits (1)

  • 94993b8 feat: support ~/.ollama/origins as config for CORS

📊 Changes

1 file changed (+41 additions, -0 deletions)

View changed files

📝 server/routes.go (+41 -0)

📄 Description

This PR is an alternative solution to #433, allowing persistent configuration to allow CORS access.

#1357 adds a GUI popup to handle the allow process. Instead, this PR adds a new line-delimited config file at ~/.ollama/origins that is read at start and otherwise works just like the OLLAMA_ORIGINS=... env var.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/1846 **Author:** [@ryansb](https://github.com/ryansb) **Created:** 1/7/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/cors-config` --- ### 📝 Commits (1) - [`94993b8`](https://github.com/ollama/ollama/commit/94993b8fd17180a813cbfde82414e17b1614d36a) feat: support `~/.ollama/origins` as config for CORS ### 📊 Changes **1 file changed** (+41 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/routes.go` (+41 -0) </details> ### 📄 Description This PR is an alternative solution to #433, allowing persistent configuration to allow CORS access. #1357 adds a GUI popup to handle the allow process. Instead, this PR adds a new line-delimited config file at `~/.ollama/origins` that is read at start and otherwise works just like the `OLLAMA_ORIGINS=...` env var. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-24 21:45:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#41951