I have a function that call web services API.
function GetData() {
var prm =
{
EVENT_CODE: EvnCode
};
$.ajax({
url: 'http://00.00.00.000/CRM/geteventwisebudgetactualamount',
headers: {
'AuthKey': 'test',
'Content-Type': 'application/x-www-form-urlencoded',
},
type: 'POST',
contentType: 'application/x-www-form-urlencoded',
data: prm,
crossDomain: true,
dataType: 'json',
success: function (data) {
},
error: function (errMsg) {
console.log('AJAX FAILED, message : ' + errMsg);
}
});
}
it always show the error mention in title, Please help to resolve this issue.