mixpanel-browser gets blocked by CORS policy
The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'
This error occurs both locally and on my production site.
This seems like a bug given that the code is very easy to follow.
I could be wrong though...
Haven't heard of this happening before. The tracking API returns a specific origin for Access-Control-Allow-Origin; can you provide some request/response details on when you're getting * back? Not entirely sure but it might happen for request failures e.g. if the API returns a 500.
It appears browser specific. This failure is occurring in Brave but passes on Safari - exact same code and origin...
I'll look into it but it's a unique error given I'm the only one raising this issue.
I also hit the error using Brave. Disabling Brave Shields on localhost is enough. I didn't test in production yet though
I cannot tell you how often I forget about Brave shield being Up! Thank you for the prompt!