andrewnguonly / Lumos

A RAG LLM co-pilot for browsing the web, powered by local LLMs
MIT License
1.42k stars 102 forks source link

CORS error when trying to configure a remote Ollama server #191

Open visagansanthanam-unisys opened 2 months ago

visagansanthanam-unisys commented 2 months ago

When i try to connect to a remote Ollama server, I get an error as shown below

Access to fetch at 'https://ollama-1/api/tags' from origin 'chrome-extension://gfnkjppnnkcicmmnfpmhmcjplpfdecfn' has been blocked by CORS policy

andrewnguonly commented 2 months ago

You'll need to set the OLLAMA_ORIGINS environment variable to chrome-extension://* when starting the Ollama server. Let me know if this resolves your issue.