IE 9 access denied on cors request using jQuery ajax get -
i've read post , included jquery.xdomainrequest.min.js after jquery, still 'access denied' error response. request work in browsers, doesn't work in ie 9. 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); } }); } jquery ajax internet-explorer-9 cross-domain cors
No comments:
Post a Comment