So I know this is a common problem and have seen a lot of people talking about it but feel that my situation is unique and maybe not as involved as others.
I have a host website and trying to build an iPhone app with JQ and PhoneGap.
I want people to be able to pass their score to my home domain from the app but am getting the dreaded: "Origin null is not allowed by Access-Control-Allow-Origin." when I try and call this:
$.ajax({
type: "POST",
url: 'http://www.homesite.com/thephppage.php',
data: {
'guid': '12333-54',
'score': 52,
'initials': 'tod'
},
success: function (data) {
try {
}
else {
}
}
catch (err) {
alert(err);
}
},
error: function (xhr) {
alert(xhr.responseText);
}
});
Since this is calling out to a domain I own, is there something simple I can do to rectify this issue?
Thanks. T