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
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024