I use jquery $.ajax to get Json content from another server. It works fine under Firefox, but not under Chrome and IE 9 (or less). Here is my code:
$.ajax({
type: "GET",
url: query,
dataType: "json",
headers : {
"Accept-Datetime" : "Fri, 15 Feb 2013 00:00:00 GMT",
"Authorization" : auth code,
},
success: processData,
error: function(xhr, status, error){ console.log(xhr.responseText, status, error);}
});
It shows the message "XmlHttpRequest cannot load ajax call [my url]. Origin [my domain] is not allowed by Access-Control-Allow-Origin" in console mode. The platform I use is just HTML. It does not allow PHP. So I can only use Jquery. Can anyone help? Cheers.