title: Websocket in chrome works when request is ws://localhost but fails if hosted on some IP
body: <p>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.</p>
  
  <p>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.</p>
  
  <p>See the difference for the same request for Firefox and chrome</p>
  
  <p><a href="https://i.stack.imgur.com/GCImT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GCImT.png" alt="enter image description here"></a></p>
  
  <p>Websocket request in Firefox.
  But in the chrome I get the below in the network log</p>
  
  <p><a href="https://i.stack.imgur.com/V8UlX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V8UlX.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/XEsxO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XEsxO.png" alt="enter image description here"></a></p>
  
  <p>As per observation i see that chrome is allowing with localhost URL. I use nginx proxy in both local and external machine</p>
  
  <p>Not sure if some configuration to be made specific to browser</p>