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

Connecting from an HTTPS website to a 'localhost' url doesn't work #645

Open
TalaatHarb opened this issue Jan 11, 2024 · 0 comments
Open

Comments

@TalaatHarb
Copy link

I was trying to make a connection to a server running at http://localhost:3008 serving sock-js communication but it failed to connect,
switching to http://127.0.0.1:3008 made it work.
I believe it is due to: 'urlUtils.isLoopbackAddr(parsedUrl.host)' not accepting 'localhost' as a loopback address so it fails to connect from any HTTPS website.

before this commit, a57c910
it failed also for 127.0.0.1 but now '// exception is 127.0.0.0/8 and ::1 urls' which doesn't include localhost.

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

1 participant