Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS errors :( #20

Open
Brentably opened this issue Apr 3, 2024 · 1 comment
Open

CORS errors :( #20

Brentably opened this issue Apr 3, 2024 · 1 comment

Comments

@Brentably
Copy link

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants