phonegap/phonegap-wp7 — Issue #33: cross domain ajax WP7
Author: snowcrack
Created: 2011-10-19 13:46:31+00:00
State: open

when I call this ajax function, I run into the error method.

$.ajax(
{
type: 'GET',
url: 'http://www.custom.com',
dataType: "json",
headers:
{
'X-Meth-XXX': "xxxxx",
'X-Bub': "xxxxxxxxxxxxx"
},
success: function (data) {
navigator.notification.alert("OK");
},
error: function (err) {
navigator.notification.alert("error");
}
});

This call works fine in phonegap for iOS in xcode. But there I had to add the http://www.custom.com to the ExternalHosts list.

Is there also an ExternalHosts list in phonegap wp7? I can't find one...

Thanks