-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: allow extension origins (still needs explicit listing), fixes #1686 #1797
fix: allow extension origins (still needs explicit listing), fixes #1686 #1797
Conversation
448faad
to
e23f21b
Compare
e23f21b
to
8baaaa3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. thanks for creating this pr
Thanks! |
you still need to explicitly list your extension with OLLAMA_ORIGINS env var
What Operating System are you using?
…On Wed, Jan 10, 2024, 4:50 PM wong2 ***@***.***> wrote:
I believe this has been shipped in ollama v0.1.19, but I'm still getting
403 error when request from a browser extension (on macOS).
image.png (view on web)
<https://github.com/jmorganca/ollama/assets/321947/df858dfb-6b54-423b-aa9a-9a2a5fa6770a> image.png
(view on web)
<https://github.com/jmorganca/ollama/assets/321947/c91dc9e2-8087-4503-ac09-829f943ad7a6>
—
Reply to this email directly, view it on GitHub
<#1797 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEAHGZBBHUFFKSWMQIRIQTYNZP53AVCNFSM6AAAAABBNZAEQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBUGUYTMNRVGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@sublimator Thanks, I see the problem. I thought AllowBrowserExtensions` means enable browser extension requests by default, I'm wrong. |
I'm using macOS, do you know how can I restart the server with env var set? |
Welcome, btw, please see #1886
|
You have to close ollama from the system tray and run "ollama serve" from
the command line with the env var set
|
Thanks! |
Late, but "you're welcome :)"
…On Wed, Jan 10, 2024, 5:37 PM wong2 ***@***.***> wrote:
Thanks!
—
Reply to this email directly, view it on GitHub
<#1797 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEAHG72OMYUVJ5AUVKYOFLYNZVOJAVCNFSM6AAAAABBNZAEQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBUGU4TGNZYGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Seems you can make a file like:
with contents similar to: <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>ai.ollama.origins</string>
<key>ProgramArguments</key>
<array>
<string>/bin/launchctl</string>
<string>setenv</string>
<string>OLLAMA_ORIGINS</string>
<string>chrome-
extension://dofdpnoclkigpakdndmhigfojjecnfln</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist> |
@sublimator Thanks! |
No description provided.