mixpanel / tracking-proxy

One-click configuration to proxy tracking requests to Mixpanel's API
67 stars 122 forks source link

CORS errors :( #20

Open Brentably opened 7 months ago

Brentably commented 7 months ago

Getting this error on client side

Screenshot 2024-04-03 at 16 02 29

and this error on server side when I tried to edit the nginx code to allow for any origin.

Screenshot 2024-04-03 at 16 03 47

Have already tried with railway and render. I can access the websites fine in the browser, just isn't calling / forwarding actual requests properly.

tdumitrescu commented 7 months ago

Something's messed up with the requests your client is formulating. URLs like /lib.min.js/track/ don't make sense. /track is an API endpoint, originally at an address like api.mixpanel.com/track, whereas lib.min.js is a JavaScript bundle, originally at cdn.mxpnl.com, which shouldn't be part of your XHR requests