Hey nostr:npub1syjmjy0dp62dhccq3g97fr87tngvpvzey08llyt6ul58m2zqpzps9wf6wl can you add the https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin header to the relay?

Id like to try and integrate this into noStrudel but I cant talk to the relay due to CORS errors in the browser

What I'm working on 😁

Reply to this note

Please Login to reply.

Discussion

Of course, I will fix it!

I made some attempts, but couldn't solve the problem. I also found that the same project works fine when using a public IP, but encounters CORS errors when using an internal IP. I'll take another look tomorrow and do some more research. 😂

it "should" be enough to add the "Access-Control-Allow-Origin: *" to the response or server but I don't know what your using under the hood.

either way though I managed to make it works. turns out it was only throwing the CORS errors for http requests and it could connect over websockets fine.

Its here https://next.nostrudel.ninja/#/relays/cache if you want to test it. should be able to enable it then the app will start using ti to cache everything

Yes, when I tested last night, only the HTTP requests encountered CORS errors, and the WebSocket connection had no issues. I'll add "Access-Control-Allow-Origin: *" when I support NIP-11. I just tried the new noStrudel and it feels fantastic, the loading speed is incredibly fast! 🚀🚀🚀🚀🚀🚀 I need to change my web client.