Having trouble with an IE bug that's puzzling me. I'm only focusing on supporting IE 10 and 11, so I thought this code would work just fine.
The issue arises when I make an AJAX request:
$.ajax({
type: {method},
url: {url},
cache: false,
crossDomain: true,
data: {data to send},
success: function (data, textStatus, xhr) {
///success code
},
error: function (xhr, textStatus, errorThrown) {
//error code
}
});
This code functions perfectly in Firefox and Chrome but fails in IE 10 and 11. Wasn't CORS supposed to be fixed in these versions of IE?
Why am I encountering the following error in IE 10 and 11?
{"readyState":0,"status":0,"statusText":"Error: Access is denied.\r\n"}