-
Notifications
You must be signed in to change notification settings - Fork 6
Issue with CORS policy #15
Description
First of all, thanks for the great plugin!
When I try to query my local Perplexica installation (which is served from Docker) I get the "Error: Failed to fetch".
The Obsidian log is as follows:
Access to fetch at 'http://localhost:3000/api/search' from origin 'app://obsidian.md' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Operating system: Windows 10 (OS build 19045.6332)
Perplexica serves from Docker container (Docker desktop on Windows).
Perplexica port: 3000; I changed the port in perplexed plugin appropriately, and had to restart Obsidian for the change to be registered in the plugin.