I have used below ajax code and it is working fine when I execute this in POSTMAN.
$.ajax({
type: "POST",
url: "https://dev-apps-nodejs.com:9003/employee/employeeid",
async: false,
contentType: "application/json",
data: { "email" : emailId },
dataType: "JSON",
success: function(data){
var emp_code=data.employeeidcode;
callbackFn(emp_code);
},
error: function(e){
document.getElementById("report_form").style.display="block";
}
});
But in application it returns 405 error like below:
jquery-1.8.0.min.js:2 POST https://dev-apps-nodejs.com:9003/employee/employeeid 405 (Method Not Allowed)