Hi,
i have a web app project, which will access some json through jsonp. Here is the code:
$.ajax(
{
type: "GET",
url: "http://ewpos.io/Account/TestConnect?inputString=Michael",
dataType: 'jsonp',
xhrFields: {
withCredentials: true
},
crossDomain: true,
success: function(data){
returnstring = data.ResultMessage;
console.log("Result String:" + returnstring);
},
error: function (xhr) {
alert(xhr.responseText);
}
}
After a week of development it was perfectly working in the emulator, but after publishing the app and run on real device, the jsonp call does not return any response.
Really new to app builder, could anyone give a hand here?
Thanks in advance