AnsweredAssumed Answered

http://127.0.0.1:8080/activiti-rest/service/login  Error(version 5.13)

Question asked by frankpeng on Jul 22, 2013
Latest reply on Feb 28, 2015 by jbarrez
In my login.html file, I want to post a request to  'http://127.0.0.1:8080/activiti-rest/service/login' through jquery ajax to login, but the return message 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"}

Please help me.


the following is my codes:
  $.ajax({
      type: 'post',
      url: '127.0.0.1:8080/activiti-rest/service/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));
      }
    });

Outcomes