Why Nostr? What is Njump? Join Nostr
2024-12-21 08:37:53 GMT
in reply to

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