Making a Cross Domain Ajax call with an authorization Header in Internet Explore 8
I am trying to make a cross Domain Ajax call with and authorization header
var requestForGettingEmployeeAttendence = $.ajax({
type: "GET",
url: attendenceServiceBaseUrl.concat(serviceMethodForGettingEmployeeAttendence).concat("?FromDate=" + formattedFirstDate + "&ToDate=" + formattedLastDate + "&EmployeeId=" + employeePartyId),
headers: { 'Authorization': autherizationHeaderForAttendenceService },
crossDomain: true,
dataType: 'json',
contentType: 'application/json',
cache: false,
processData: true
});
requestForGettingEmployeeAttendence.done(gettingEmployeeAttendenceDetailsSuccessful);
requestForGettingEmployeeAttendence.fail(gettingEmployeeAttendenceDetailsFailed);
This works fine in FireFox, Chrome and IE 11,10,9 but does not work in IE 8 :(
any help is greatly appreciated. Thanks in advance