api - Shopify Graphql code returning Error 404. Also noticed that it works on .myshopify domain but not on custom
I do have a question regarding Graphql, i made it work but when we changed our domain from ".myshopify" to "custom" domain, it stopped working, it returns a error 400.
Here's the complete error.
OPTIONS https://testwebsite.myshopify.com/admin/api/graphql.json (https://testwebsite.myshopify.com/admin/api/graphql.json) 400
Access to XMLHttpRequest at 'https://testwebsite.myshopify.com/admin/api/graphql.json (https://testwebsite.myshopify.com/admin/api/graphql.json)' from origin 'https://testwebsite.com.au (https://testwebsite.com.au)' 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.
Hope you can give me an answer.
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.