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

Does not work over HTTPS (on Heroku) #7

Closed
TravelingTechGuy opened this issue Aug 17, 2016 · 10 comments
Closed

Does not work over HTTPS (on Heroku) #7

TravelingTechGuy opened this issue Aug 17, 2016 · 10 comments
Assignees
Labels

Comments

@TravelingTechGuy
Copy link
Contributor

Just added the route to an Express app I have deployed to Heroku and I'm getting the following error (repeated every second):

Mixed Content: The page at 'https://mysitename.herokuapp.com/status' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://mysitename.herokuapp.com:41338/socket.io/?EIO=3&transport=polling&t=LQPzECX'. This request has been blocked; the content must be served over HTTPS.

XMLHttpRequest cannot load http://mysitename.herokuapp.com:41338/socket.io/?EIO=3&transport=polling&t=LQPzECX. Failed to start loading.

Can you maybe provide a way to specify whether the Socket.io call be made over HTTPS, or better yet, handle this automatically?

@RafalWilinski
Copy link
Owner

Good point, I'll fix that asap!

@RafalWilinski
Copy link
Owner

Fixed: 5afd9c9

@TravelingTechGuy
Copy link
Contributor Author

Thanks! Have you published the fix to NPM?

@RafalWilinski
Copy link
Owner

I've just pushed version 0.0.7

@TravelingTechGuy
Copy link
Contributor Author

Cheers mate!

@TravelingTechGuy
Copy link
Contributor Author

TravelingTechGuy commented Aug 17, 2016

Just checked the latest version - doesn't work. If I browse to my web site without specifying http/https in the address page, and then add the '/status' route, I get GET http://www.mysite.com:41338/socket.io/?EIO=3&transport=polling&t=LQQXZPh net::ERR_CONNECTION_REFUSED

@dpappa
Copy link

dpappa commented Aug 18, 2016

^^ experiencing this issue as well. Firewall is open, but my SSL cert doesn't like this being in http

@TravelingTechGuy
Copy link
Contributor Author

Please reopen the issue. It still occurs. I suspect it may have something to do with the port number, and the way it's specified.

@RafalWilinski
Copy link
Owner

Sorry for that, I'll try to fix that.

@RafalWilinski RafalWilinski self-assigned this Aug 18, 2016
@RafalWilinski
Copy link
Owner

Thank you guys for your input and fast reaction! Version 0.0.9 has been published on NPM with HTTPS and HTTP support.

You can test https support here: https://safe-fjord-78017.herokuapp.com/status

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

No branches or pull requests

3 participants