Cannot call api. It is causing CORS (cross origin) error. Tried with ajax to hit api.
Could you please let know how to evade CORS issue. I am hitting api by ajax, and applied crossOrigin:true, but still that CORS .Tried using the api key of the private app on passing through headers,still not working. Need a urgent solution
In your private app go to extensions and use an app proxy. That way api requests don’t face CORS issue.
https://help.shopify.com/en/api/guides/modifying-online-store/application-proxies
If only this worked.
Does Shopify Storefront API really not allow for localhost?
How are real developers suppose to use this thing?
So much mus-information on this forum it’s ridiculous.