Skip to main content

Solved

12320 Topics

Hello,Any idea why this simple script is working fine on Safari but not in Chrome/Firefox?The HTTP status is always the same 202 though, supposedly success. Thank for your help! const options = {    method: "POST",    mode: "cors",    headers: {        revision: "2024-10-15.pre",        "content-type": "application/vnd.api+json"    },    body: JSON.stringify({        data: {            type: "subscription",            attributes: {                profile: {                    data: {                        type: "profile",                        attributes: {                            email: "sarah2.mason@klaviyo-demo.com",                            subscriptions: {                                email: {                                    marketing: {                                        consent: "SUBSCRIBED"                                    }                                }                            }                        }                    }                }            }