phildenhoff / logseq-slipbox

Write notes on mobile, save them to Logseq later.
MIT License
9 stars 0 forks source link

CORS Issue Fetching Notes #1

Closed isosphere closed 2 months ago

isosphere commented 2 months ago

Error in console after hitting "Add notes from slipbox":

index.html:1 Access to fetch at 'https://slipbox.XXXXX.ts.net//api/v1/notes?all' from origin 'lsp://logseq.io' has been blocked by CORS policy: 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.

isosphere commented 2 months ago

Looks like this occurs when your URL has a trailing slash in it. I removed the slash, and it works.