title: Ionic 2 webview websocket is not working in android
body: <p>I am using Ionic 2 webview for app development. I am trying to create open websocket connection using</p>
  
  <pre><code>var ws = new WebSocket("ws://example.com");
  </code></pre>
  
  <p>It opens up a connection successfully in ios but <strong>403 forbidden in android.</strong>
  While debugging I came to know that <strong>cookies were not passed</strong> as part of request header during handshake. Also origin header has <strong>http:// for ios</strong> and <strong>file:// for android.</strong>
  Code part is exactly same for both platforms.</p>
  
  <blockquote>
    <p>Note: Tested in android <strong>6.0 and 5.0</strong></p>
  </blockquote>