In Firefox, Chrome, and Safari, the initial POST rest/user/session request works perfectly fine. However, in Internet Explorer 9, it consistently returns an error.
When the dataType is specified as "json," IE9 encounters a 'no transport' error with a status of 0. On the other hand, when the dataType is set to "jsonp," IE9 receives an error object with a successful XHR status of 200 but with a parseError.
...
$.ajax({
url: BASE_PATH + url,
beforeSend: function (request) {
request.setRequestHeader("X-DREAMFACTORY-APPLICATION-NAME", APP_NAME);
request.setRequestHeader("X-DREAMFACTORY-SESSION-TOKEN", sessionStorage.SESSION_TOKEN);
request.setRequestHeader("Content-Type","application/json");
request.setRequestHeader("Accept","application/json");
},
method: method,
contentType: "application/json; charset=utf-8",
dataType: "jsonp",
processData : processData,
data: newdata,
cache: false,
success: function(response){
console.log(arguments);
$.jStorage.set("unique_session_id",response.session_id);
sessionStorage.SESSION_TOKEN = response.session_id;
runApp();
},
error: function(response){
console.log(arguments);
}
});