I've read the post and included the jquery.xdomainrequest.min.js after jQuery, but I still get the 'Access Denied' error response. This request does work in browsers, but doesn't work in ie 9. The server response headers include :
Access-Control-Allow-Origin:*
Cache-Control:no-cache
Content-Encoding:gzip
Content-Length:166
Content-Type:application/json; charset=utf-8
Javascript function executed:
function doStuff()
{
$.support.cors = true;
$.ajax({
url: 'https://foo/bar',
dataType: 'json',
crossDomain: true,
type: 'GET',
contentType: 'application/json; charset=utf-8',
success: function (data) {
$.each(data, function (key, val) {
doSomething();
});
},
error: function (request, status, error) { alert(status + ", " + error); }
});
}