promnesia
promnesia copied to clipboard
Can't connect to backend because of CORS Policy
Promnesia can't connect to a running server that gives me a response when manually visiting localhost:13131. When I click on the Check backend status button in the options page (and debug the page):
Access to fetch at 'http://localhost:13131/status' from origin 'chrome-extension://kdmegllpofldcpaclldkopnnjjljoiio' 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.
options_page.js:1 POST http://localhost:13131/status net::ERR_FAILED
(anonymous) @ options_page.js:1
(anonymous) @ options_page.js:1
(anonymous) @ options_page.js:1
options_page.js:1 TypeError: Failed to fetch
Thanks for reporting! Odd, don't think I've seen that in Promnesia.. Will try to debug when I have some time, CORS has always been sort of pain.
don't think I even ran into this after years, but feel free to reopen if it's still an issue