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

Cannot connect to Websocket when using HTTPS #191

Open
shvelo opened this issue Oct 6, 2015 · 3 comments
Open

Cannot connect to Websocket when using HTTPS #191

shvelo opened this issue Oct 6, 2015 · 3 comments

Comments

@shvelo
Copy link

shvelo commented Oct 6, 2015

Demo here

When accessing the game over HTTPS, the game fails to connect to the server because it tries to connect via HTTP.

Mixed Content: The page at 'https://browserquest-shvelo.herokuapp.com/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://browserquest-shvelo.herokuapp.com/socket.io/?EIO=3&transport=polling&t=1444124259981-0'. This request has been blocked; the content must be served over HTTPS.
@ghost
Copy link

ghost commented Oct 6, 2015

Have you changed the ws:// in gameclient to wss://
Took me and my team a while to realize the issue.

@shvelo
Copy link
Author

shvelo commented Oct 7, 2015

I did and now I get SSL_PROTOCOL_ERROR when connecting :/

On Tue, Oct 6, 2015 at 7:14 PM, Flavius [email protected] wrote:

Have you changed the ws:// in gameclient to wss://
Took me and my team a while to realize the issue.


Reply to this email directly or view it on GitHub
#191 (comment)
.

@ghost
Copy link

ghost commented Dec 30, 2016

I used reverse-proxy to fix this, sorry for late reply. For example, I can use wss://game.taptapadventure.com

It's a really sketchy fix, but.. It works temporarily.

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