1

I'm using jQuery to do a post request to a different domain. This works fine on FF, Chrome and IE7,8 and 9. I was not expecting not to work on IE10..any ideas? Here's the code

var url = "http://xxxxxxx/xxxx.php?";

jQuery.ajax({
    type: "POST",
    async: false,
    crossDomain: true,
    contentType: "application/json; charset=utf-8",
    url: url,
    dataType: "json",
    data: JSON.stringify(params),
    success: function (data) {
        callback.call(Test, data, optional);
    },
    error: function ( jqXHR,  textStatus,  errorThrown) {
        alert(textStatus + errorThrown);
    }
});
nhenrique
  • 874
  • 1
  • 16
  • 35
  • 1
    Please check this answer, to see if helps: http://stackoverflow.com/questions/16956295/ie10-and-cross-origin-resource-sharing-cors-issues-with-image-canvas – gnclmorais Dec 17 '13 at 12:11
  • please refer to this ..http://stackoverflow.com/questions/3362474/jquery-ajax-fails-in-ie-on-cross-domain-calls – patel.milanb Dec 17 '13 at 12:12
  • I still can't find an answer. I have tried not to use jquery, because ie10 supports cors natively but I still get an "Access denied"..so does it support or not? Ill post the code asap – nhenrique Dec 17 '13 at 16:02

1 Answers1

0

Maybe security zones in IE has something to do with it? https://msdn.microsoft.com/en-us/library/ms537505(VS.85).aspx#xdomain

Tldr; It is possible that IE will not allow CORS, if it uses Native XMLHTTP, and if the two domains are in certain different security zones.

Hanne Olsen
  • 882
  • 7
  • 7