Hey,
I want to set up the back in stock functionality via API for Shopify. I was following this this guide but I am facing an issue with CORS policy:
Access to fetch at 'https://a.klaviyo.com/api/v1/catalog/subscribe' from origin 'https://blabla.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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
If I got it right, the issue is that the klaviyo domain is not passing Access-Control-Allow-Origin' header in the response. Do you have an idea how to fix that?
And what is the difference between https://manage.kmail-lists.com/ajax/subscriptions/subscribe and https://a.klaviyo.com/api/v1/catalog/subscribe ?
Many Thanks,
Tristan