Has anyone started seeing CORS when trying to call mixpanel track events from their website?
Here is the console message we’ve started seeing:
Access to XMLHttpRequest at 'https://api-js.mixpanel.com/track/?ip=1&_=XXXXX' from origin 'https://website.com' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values 'https://website.com,*', but only one is allowed.
The only thing I can think of that may have caused this is the fact that we started testing a new subdomain that contains mixpanel (to run AB redirect tests). However, we have mixpanel implemented on several other subdomains and have not had any issues up to this point.
Best answer by kyle-fcst
Hi Cherise,
Thank you for your answer. I was actually using Chrome, but it appears the problem has resolved itself. It must have been an intermittent issue with the API.
Best,
Kyle