A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
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
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.
Did you find a solution for the CORS error?
Same too.