Websocket in chrome works when request is ws://loc

2020-05-09 08:43发布

问题:

I have a application from which websocket requests are established. When I host the application in my localhost all the websocket requests are successful from any browser testing in my local.

But when i host the same application on another machine and test it from my machine. Except chrome and opera all the other browsers seem to work including IE.

See the difference for the same request for Firefox and chrome

Websocket request in Firefox. But in the chrome I get the below in the network log

As per observation i see that chrome is allowing with localhost URL. I use nginx proxy in both local and external machine

Not sure if some configuration to be made specific to browser

回答1:

Solved! As said it is working fine in Firefox and IE, Chrome I had to open it in no proxy mode, as i'm under my organization's proxy.

https://groups.google.com/a/chromium.org/forum/#!topic/net-dev/IhulT2eCinE