Hello I am having an issue with using AJAX to submit a custom feedback page from my website. Here's what I have
$.ajax({
beforeSend: function (xhr) {
xhr.setRequestHeader('Authorization', 'APIkey:' + btoa('XXXXXXXX'));
},
type: "POST",
contentType: "application/jsonp; charset=utf-8",
url: 'http://f4.freshdesk.com/helpdesk/tickets.json',
data: {
"helpdesk_ticket":{
"description":"Some details on the issue ...",
"subject":"Support needed..",
"email":"hulk@outerspace.com",
"priority":1, "status":2
}
},
processData: false,
dataType: "jsonp",
crossDomain: true,
error: function (xhr, ajaxOptions, thrownError) {
console.log(thrownError);
}
});
I get an error message ""jQueryXXXXXXXXXXXXXXXXXXXXXXX was not called" Anyone know how to resolve this issue?