Thanks, everyone! This is super helpful. I checked the network tab, and it looks like CORS is the main js fetch failed reason. I’ll try tweaking the server config and maybe use a proxy like ngrok.
Also, I didn’t even think about mixed content—my site is HTTPS, but the API is HTTP. Gonna fix that ASAP.
Quick question: If I use a proxy, do I still need to worry about CORS headers? Or does the proxy handle it?
Thanks again! You guys are lifesavers. 🙌
Also, I didn’t even think about mixed content—my site is HTTPS, but the API is HTTP. Gonna fix that ASAP.
Quick question: If I use a proxy, do I still need to worry about CORS headers? Or does the proxy handle it?
Thanks again! You guys are lifesavers. 🙌
