For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
I am currently working developing a PoS extension, and in this PoS extension I want to fetch the data from the Admin REST API of orders, but when I try to retrieve the data from my server, it returns me the next CORS error:
Access to fetch at 'https://ed1b-200-8-39-113.ngrok-free.app/api/saludar' from origin 'https://cdn.shopify.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.
This is an image of the code:
Solved! Go to the solution
This is an accepted solution.
I already solved it! We needed to add a Cloudflare Quick Tunnel
This is an accepted solution.
I already solved it! We needed to add a Cloudflare Quick Tunnel