title: Phonegap Android app ajax requests to HTTPS fail with status 0
body: <p>Ajax HTTPS requests from my PhoneGap/Cordova app on Android inexplicably fail with status=0. It appears only when signing the app with the release key (i.e., exporting from ADT), but doesn't appear when signing with debug key (running directly in emulator or phone).</p>
  
  <pre><code>request = new XMLHttpRequest()
  request.open "GET", "https://some.domain/", true
  request.onreadystatechange = -&gt;
    console.log "** state = " + request.readyState
    if request.readyState is 4
        console.log "** status = " + request.status
  
  request.send()
  </code></pre>
  
  <p>always outputs</p>
  
  <pre><code>** state = 4
  ** status = 0
  </code></pre>
  
  <p>It doesn't matter if i install the app from Play Store or with <code>adb</code> utility. I presume it could be connected with the certificate, since not all HTTPS domains fail this way.</p>