Recently we upgraded to jquery 3.x with the default browser mode as EDGE. Post the upgrade, error message 'Access is denied' is thrown when I try to make an ajax rest call between 2 different domains. The same is working fine with the default browser as 'IE7'. Also it works fine when we try to execute the rest call from local work space with IE7 and EDGE. Issue occurs only when the domains are different and the browser mode as 'EDGE'.
Although this points out to CORS related issue, AJAX call is not even initiated in first place. When i try to initiate the rest call and monitor the Network parameters under F12 developer tools option, no calls or log is getting registered. As soon as I initiate the rest call from the web page, the error message is thrown. I could see that the 'Protected mode' check box is enabled under security settings for Internet and the destination domain we are consuming is not part of the trusted site. Please find my model code base below. Requesting you assistance on the same.
$.ajax( {
url: http://localhost:8082/,
type: 'GET',
async: false,
success: function(response, options) {
if(successCallback && (typeof successCallback === 'function')){
successCallback.apply((callbackObj || this), [response, options]);
}
},
error: function (jqXHR, exception) {
util.logFailureMessage(jqXHR);
if(failureCallBack && (typeof failureCallBack === 'function')){
failureCallBack.apply((callbackObj||this),[jqXHR]);
}
}
});
I also tried to update the Integrity settings AppData\LocalLow folder to LOW and tried. But it still did not work as desired. Requesting you assistance on the same.