API

Highlighted
New Member
1 0 0

I'm using shopify api to get product info via script...

$.get(current_variant_url, function(data, status){
alert("Data: " + data + "\nStatus: " + status);
});

the url is : https://representclo.com/admin/api/unstable/variants/3262618907
but I Get this error:

Access to XMLHttpRequest at 'https://represent-clothing.myshopify.com/admin/api/unstable/variants/32626189074503.json' (redirected from 'https://representclo.com/admin/api/unstable/variants/32626189074503.json') from origin 'https://representclo.com' 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.

how can I fix this?

0 Likes