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

2020-05-09 09:05发布

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

enter image description here

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

enter image description here

enter image description here

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条回答
beautiful°
2楼-- · 2020-05-09 09:45

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

查看更多
登录 后发表回答