What is Nostr?
bordalix
npub1vt8…8cxv
2024-12-21 08:37:53
in reply to nevent1q…0kr2

bordalix on Nostr: If your web app is accessing a endpoint which not signals CORS you need to deploy a ...

If your web app is accessing a endpoint which not signals CORS you need to deploy a cors everywhere proxy: your web app connects to this proxy, that will fetch from the original endpoint and respond to your web app with the CORS headers on, thus fixing the problem.

You can deploy such a proxy in Cloudflare workers (the free tier should be enough) using this code:

https://github.com/Zibri/cloudflare-cors-anywhere
Author Public Key
npub1vt803quxxq32fuwkp42g2lyaw2t9qupvnl3z0vyc3s9kudkyhn8qt28cxv