title: Android WebView won't load CORS content in Gingerbread and below
body: <p>I've set up a basic WebView in Android, and has pointed it to a url on my root domain (eg. <a href="https://example.com" rel="nofollow">https://example.com</a>). I want to connect to a sockjs server at another port, but on the same domain (eg. <a href="https://example.com:81" rel="nofollow">https://example.com:81</a>).</p>
  
  <p>Now, it works like a charm in the default Android browser - but not in a WebView. The WebView loads my (CORS) Ajax request in Android 4.0, however in fx. Gingerbread and Froyo it doesn't.</p>
  
  <p>Sockjs sets the header: <code>Access-Control-Allow-Origin:https://example.com</code> </p>
  
  <p>Thanks!</p>
  
  <p><strong>UPDATE:</strong> I have found out that everything is fine without https...</p>