SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
$.ajax({ beforeSend: function (xhr){ xhr.setRequestHeader("Content-Type","application/json"); xhr.setRequestHeader("Accept","text/json"); }, type: "POST", //........ });