-
Notifications
You must be signed in to change notification settings - Fork 102
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 related error #96
Comments
If you run the official server builds in the standard way, they intentionally don't allow connections from anything but the official UI. This avoids cross-site request forgery style attacks (where a malicious website you visit communicates with local services on your machine). By default, production builds allow connections only from There's two options:
Does that all make sense? |
Thanks for the answer! I previously created my own fork of the server that disables the cors protection entirely. I don't think it's a good idea tough, hence I'm going to use your provided solution for the time being. |
I'm getting a CORS Related errors on my web browser while trying to access the UI locally. Using https://app.httptoolkit.tech/ works just fine tough.
Here's what I saw from the console log on my browser when trying to open http://local.httptoolkit.tech:8080/:
The errors kept on going and basically the UI just stuck in the "This is taking longer than normal" message and never went through.
I've also tried to build the UI first and put the resulting files to my nginx server instead and still got the same errors.
I've tried using Firefox and Chrome browser with no avail. https://app.httptoolkit.tech/ worked just fine with those two browsers.
I'm using the latest server build from https://github.com/httptoolkit/httptoolkit-server/releases.
Any idea on what I'm doing wrong here ? I would greatly appreciate any assistance, thank you.
The text was updated successfully, but these errors were encountered: