Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Re: Redirect Uri CORS Error

Redirect Uri CORS Error

studioqdesigns
Excursionist
15 0 7

I'm developing an app for a client in which I'm attempting to pull some data from their Shopify API to associate it with other data on a different site that's relevantly linked to it.

 

Unfortunately, I’m encountering this error which leads me to believe that the API itself isn't returning the origin header to my callback backend. I’m wondering if there's any way to configure the Shopify partner app to send along the headers I need when requested here or if you may have any other solutions, thank you!

 

Error:

 

Access to XMLHttpRequest at 'https://(shop name here).myshopify.com/admin/oauth/authorize?client_id=(series of number and letters here) &scope=read_products&state=(series of numbers here) &redirect_uri=http://localhost:3000/shopify/callback' (redirected from 'http://localhost:3000/shopify?shop=(shop name here) .myshopify.com') from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Replies 2 (2)

MarcoDo
Shopify Partner
19 4 8

Did you find a solution for the CORS error?

AL33
Shopify Partner
43 0 3

Same too.