Cors when using local ollama
wp-jackliu opened this issue · comments
Jack.liu commented
Now, start the local server with OLLAMA_ORIGINS=app://obsidian.md* ollama serve, this will allow the Obsidian app to access the local server without CORS issues.
Again, OLLAMA_ORIGINS=app://obsidian.md* is required!
Yeah, I follow this doc. but also not work .please help me.
Jack.liu commented
Oh the fish shell's issue ....
!!!! Please note that when using the command line, please exit ‘fish’ before exec OLLAMA_ORIGINS=app://obsidian.md* ollama serve
Tristram Oaten commented
OMG this kicked my ass lol
here's the fish workaround:
OLLAMA_ORIGINS="app://obsidian.md*" ollama serve
you have to QUOTE the env body!