I'm encountering a CORS policy error when trying to use the Ollama plugin in Obsidian on a Windows PC. The error message is:
Access to fetch at 'http://localhost:11434/v1/chat/completions' from origin 'app://obsidian.md' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
localhost:11434/v1/chat/completions:1
Failed to load resource: net::ERR_FAILED
It seems the plugin is blocked by CORS restrictions when attempting to access the Ollama API via a local endpoint. Could you please provide guidance on resolving this issue or adjusting the plugin configuration to allow cross-origin requests?
Environment
OS: windows
SystemSculpt AI Version: Latest (Please ensure you're using the latest version before submitting)
Describe the Bug
I'm encountering a CORS policy error when trying to use the Ollama plugin in Obsidian on a Windows PC. The error message is:
Access to fetch at 'http://localhost:11434/v1/chat/completions' from origin 'app://obsidian.md' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request. localhost:11434/v1/chat/completions:1
Failed to load resource: net::ERR_FAILED
It seems the plugin is blocked by CORS restrictions when attempting to access the Ollama API via a local endpoint. Could you please provide guidance on resolving this issue or adjusting the plugin configuration to allow cross-origin requests?
Environment
To Reproduce