CORS and Rest Admin API on custom domain

New Member
3 0 0

Hi there,

 

Am using the Rest Admin API on the store to retrieve products.json. 

 

It was all working fine on the .myshopify.com domain name, but when I switched to a custom domain, I'm getting CORS errors.

 

Indeed, it looks like calling products.json on the custom domain redirects to the .myshopify.com domain, and triggers the CORS error.

[cd797b7ea58da9a97e1efea27ca0ff01]_Image 2019-07-12 at 11.08.53 am.png

 

Thanks in advance!

 

Seb

0 Likes
Highlighted
New Member
3 0 0

Turns out I didn't need to use the admin api at all, and can just query /products.json directly!

0 Likes