AngularJS http sending post request fails

后端 未结 2 1742
广开言路
广开言路 2021-01-26 05:30

Having this GET request, it works (sends request to the sever and server is able to handle it):

    /* post to server*/
    $http.get(\"/forms/FormValidator1/val         


        
2条回答
  •  别那么骄傲
    2021-01-26 05:55

    The server configuration accepts POST requests on URLs of the form: /forms/FormValidator1/validateForm/:jsonForm.

    The URL the client is POSTing to is/forms/FormValidator1/validateForm/, which does not fit that form (note the missing :jsonForm).

提交回复
热议问题