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
Hi, u resolved this problem?
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025