Ajax calls to HTTPS. Android PhoneGap XHR status=0
<p>I want to make AJAX calls to HTTPS from HTTP, but have <code>XHR.status=0</code>.</p>

<p>I use following code to make the call:</p>

<pre><code>   $j.ajax({
        type: method || "GET",
        async: this.asyncAjax,
        url: url,
        contentType: 'application/json',
        cache: false,
        processData: false,
        data: payload,
        success: function(response){
                alert("Resp");

},
       error: function(xhr, status, error) {
       alert("3-"+xhr.status+" STATUS: "+status+" ERROR: "+error+" URL: "+url);
    },
        dataType: "json",
        beforeSend: function(xhr) {
            if (that.proxyUrl !== null) {
                xhr.setRequestHeader('SalesforceProxy-Endpoint', url);
            }
            xhr.setRequestHeader(that.authzHeader, "OAuth " + that.sessionId);
            xhr.setRequestHeader('X-User-Agent', 'salesforce-toolkit-rest-javascript/' + that.apiVersion);
        }
    });

}
</code></pre>
