Skip to main content
Solved

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


Forum|alt.badge.img

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.

Best answer by JessFosnough

@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!

View original
Did this topic or the replies in the thread help you find an answer to your question?

3 replies

Forum|alt.badge.img+31
  • Partner
  • 252 replies
  • June 3, 2024

Hello @krsmas is it possible to share your domain?


Forum|alt.badge.img
  • Author
  • Contributor I
  • 1 reply
  • June 3, 2024
Maxbuzz wrote:

Hello @krsmas is it possible to share your domain?

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


JessFosnough
Expert Problem Solver IV
Forum|alt.badge.img+23
  • Expert Problem Solver IV
  • 195 replies
  • Answer
  • June 3, 2024

@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!