Shopify-code-snippets icon indicating copy to clipboard operation
Shopify-code-snippets copied to clipboard

Is there any official documentation on these JSONP endpoints?

Open JanisE opened this issue 7 years ago • 2 comments

Is there any official documentation on these JSONP endpoints?

In Shopify forums someone even claims that "the Shopify API doesn't support JSONP requests" – https://ecommerce.shopify.com/c/shopify-apis-and-technology/t/front-end-api-call-cors-issue-413232.

JanisE avatar Feb 22 '18 10:02 JanisE

You should expect the /cart.json storefront endpoint to be the only one that supports jsonp. Makes sense that the REST API wouldn't. If there's some more specific use case this is related to be sure to raise it.

freakdesign avatar Feb 23 '18 04:02 freakdesign

Luckily, "cart/add.json" and "cart/change.json" is working too, and it seems to be all I need for now. As long as they're working I'm good.

JanisE avatar Feb 23 '18 08:02 JanisE