Skip to content
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

Manually set the 'origin' header in chrome extension. #1314

Open
wdlid opened this issue Dec 25, 2024 · 2 comments
Open

Manually set the 'origin' header in chrome extension. #1314

wdlid opened this issue Dec 25, 2024 · 2 comments

Comments

@wdlid
Copy link

wdlid commented Dec 25, 2024

I'm using ollama, by default, the origin should be same with host, but in our case, it's

-H 'Origin: chrome-extension://iaakpnchhognanibcahlpcplchdfmgma' \

It's much better if we can manually define the 'origin' header when create a customer or any chatbot.

@wong2
Copy link
Collaborator

wong2 commented Dec 25, 2024

Are you running ollama on a custom port? We have handled the origin problem for ollama running on localhost:11434

@wdlid
Copy link
Author

wdlid commented Dec 25, 2024

Thanks for the quick response.
Yes, my ollama is behind a nginx and using a sub path like /abcdedg/
I'm using a customer url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants