Hello,
I am creating a customer extension for my client that checks if a given client is entitled to a discount.
To do this I send a request to an external API that should return information about discounts. In postman everything works fine but when I transfer it to my extension I get an error
...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.
What am I doing wrong? I set network_access = true.
I can’t change the server API code because I don’t have access to it. Is there a way to solve this problem?