Answer the question
In order to leave comments, you need to log in
Why does the 400 error occur in the nginx+socket.io+ssl bundle?
Good afternoon. For 2 days I want to solve the problem of WebSocket connection to 'wss:// failed: Error during WebSocket handshake: Unexpected response code: 400
location / {
proxy_pass http://socket_nodes;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
Answer the question
In order to leave comments, you need to log in
And what do the logs show on what should process the request?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question