[GH-ISSUE #1686] OLLAMA_ORIGINS=chrome-extension://etc does not work #948

Closed
opened 2026-04-12 10:38:54 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @sublimator on GitHub (Dec 23, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1686

(base) ➜  ~ OLLAMA_ORIGINS=chrome-extension://dofdpnoclkigpakdndmhigfojjecnfln ollama serve
2023/12/23 15:37:56 images.go:737: total blobs: 85
2023/12/23 15:37:56 images.go:744: total unused blobs removed: 0
panic: bad origin: origins must contain '*' or include http://,https://
Originally created by @sublimator on GitHub (Dec 23, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1686 ``` (base) ➜ ~ OLLAMA_ORIGINS=chrome-extension://dofdpnoclkigpakdndmhigfojjecnfln ollama serve 2023/12/23 15:37:56 images.go:737: total blobs: 85 2023/12/23 15:37:56 images.go:744: total unused blobs removed: 0 panic: bad origin: origins must contain '*' or include http://,https:// ```
GiteaMirror added the bug label 2026-04-12 10:38:54 -05:00
Author
Owner

@rgaidot commented on GitHub (Dec 23, 2023):

why chrome-extension://.... ? You can exposing ollama via 127.0.0.1:11434 or 0.0.0.0:11434 on your local network

<!-- gh-comment-id:1868275266 --> @rgaidot commented on GitHub (Dec 23, 2023): why `chrome-extension://....` ? You can exposing ollama via `127.0.0.1:11434` or 0.0.0.0:11434 on your local network
Author
Owner

@sublimator commented on GitHub (Dec 23, 2023):

Yeah, but it restricts by origin, which last I checked (to be fair, years
ago) is set to chrome-extension:// in the header?

I have been using a proxy script, and only got around to trying the header
today. Seems need to use * or an http[s] url, with the former less than
ideal to direct users to set.

Am I missing/confusing something?

Thanks

<!-- gh-comment-id:1868318697 --> @sublimator commented on GitHub (Dec 23, 2023): Yeah, but it restricts by origin, which last I checked (to be fair, years ago) is set to chrome-extension:// in the header? I have been using a proxy script, and only got around to trying the header today. Seems need to use * or an http[s] url, with the former less than ideal to direct users to set. Am I missing/confusing something? Thanks
Author
Owner

@sublimator commented on GitHub (Jan 5, 2024):

Fixed with: https://github.com/jmorganca/ollama/pull/1797/files

<!-- gh-comment-id:1878010872 --> @sublimator commented on GitHub (Jan 5, 2024): Fixed with: https://github.com/jmorganca/ollama/pull/1797/files
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#948