App reviews, troubleshooting, and recommendations
I have an app block that I'm testing in a test development store, I'm trying to make a simple fetch call to my external backend application but I keep encountering a cors error:
Access to fetch at 'my-backend-request' from origin 'https://extensions.shopifycdn.com' 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.
The code in my react app looks like this:
Use an App Proxy instead
https://shopify.dev/docs/apps/build/online-store/display-dynamic-data#add-an-app-proxy
I still seem to be getting a Cors error, something do to with the preflight not being able to be redirected
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024