Skip to content

Issue with CORS policy #15

@popsi

Description

@popsi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions