See the below code. Same code working fine and get success response. But in Firefox same code giving error Message. Not sure what is issue…
Please help…
function callRest(restAddress, employeedetails, objExperienceDetails, objEducationDetails) {
jQuery.support.cors = true;
$.ajax({
url: restAddress,
type: “POST”,
contentType: “application/json; charset=utf-8”,
dataType: ‘json’,
data: escapeNewLineChars(JSON.stringify({ “item”: employeedetails, “itemExperienceDetails”: objExperienceDetails, “itemEducationDetails”: objEducationDetails })),
success: function (data) {
alert(data.d);
console.log(data.d);
},
error: function (x, y, z) {
//alert(“At this time, the tool only supports content from LInkedIN.com profiles”);
console.log(“REST API call failed with error:” + x.responseText + y + z);
}
});
}