Shopify JS Buy SDK suddenly stopped working and leads to CORS error when trying to fetch products

Michi2
Shopify Partner
9 0 4

Hello! For years we've been using Shopify's JS Buy SDK (which relies on the Storefront API) with a static site generator successfully. However as of today all our attempts to fetch products or collections to display on the website fail with a CORS error stating "Reason: CORS header 'Access-Control-Allow-Origin' missing".

 

We didn't change anything on the static site or Shopify shop for weeks and it has been working fine until today. We use v0 of Shopify's JS Buy SDK.

 

I can't imagine that Shopify would intentionally block external domains from accessing the Storefront API via the JS Buy SDK. That's the whole purpose of this SDK as well as the storefront API.

 

Does anyone else experience this problem? Is there an issue with the storefront API? Currently our store is broken due to this.

Reply 1 (1)

Michi2
Shopify Partner
9 0 4

Update: The issue seems to have been quietly resolved on Shopify's end. Regardless I would have expected to find at least some information on this issue.