The flowing is jquery ajax sent request codes:
$.ajax({
type: 'post',
url: '127.0.0.1:8080/activiti-rest/sevice/login',
dataType: 'jsonp',
data: {'userId':'kermit','password':'kermit'},
contentType: 'application/json',
cache: false,
complete: function(xhr,ts) {
$('body').append(JSON.stringify(xhr));
},
success: function(xhr,ts) {
alert(JSON.stringify(xhr));
}
});
The Page return result is:
{"readyState":4,"responseJSON":{"code":405,"msg":"The method specified in the request is not allowed for the resource identified by the request URI"},"status":200,"statusText":"load"}
Why?