I am trying to build this plugin and it works fine in development, but when I added it to the market place I get this error:
Access to fetch at ‘http://localhost:11434/api/generate’ from origin ‘lsp://logseq.io’ 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.
I added effect = true to the manifest, but the problem still exists. and I can’t disable cors because I need the response, is there a certain header I need to add or something?
Thanks in advance