Solved

CORS errors on back in stock form submission (started June 1st)


Badge

We use the “https://a.klaviyo.com/media/js/onsite/onsite.js” integration of Klaviyo. 

 

As of June 1st we get a CORS error when submitting the back in stock email subscription.

 

ERROR: Access to XMLHttpRequest at 'https://a.klaviyo.com/onsite/components/back-in-stock/subscribe' from origin 'https://www.yourSite.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.

 

Neither our code or config has changed, and this functionality has gone from working to broken.

 

Please advise on if there is any way for us to fix this our end.

icon

Best answer by JessFosnough 3 June 2024, 19:35

View original

3 replies

Userlevel 4
Badge +14

Hello @krsmas is it possible to share your domain?

Badge

Hello @krsmas is it possible to share your domain?

Hi @Maxbuzz , not sure how knowing the domain helps find the cause of the issue? 

Userlevel 5
Badge +22

@krsmas,

I received an email from Klaviyo concerning an issue with Shopify & back in stock forms. Here is a link to the incident - maybe this was the cause?

Good luck!

Reply