CORS error while using API in Shopify App

CORS error while using API in Shopify App

Muhammad_Mahad
Shopify Partner
2 0 0

Hii everyone, 

I created an app through CLI (terminal). Now I am customizing and adding custom files of .jsx to add some custom functionality. I'm using an API to achieve some functionality but when the API is used in code it gives a CORS error.

 

I also had tried these 

  • axios instead of fetch.  
  • Updating API headers. 

Is there any solution or suggestion? 

Replies 0 (0)