JQuery Ajax is sending GET instead of POST

前端 未结 11 533
野性不改
野性不改 2020-12-03 00:20

The following code triggers a GET instead of a POST HTTP request.

function AddToDatabase() {
  this.url = \'./api/add\';
}

AddToDatabase.prototype.postData          


        
11条回答
  •  庸人自扰
    2020-12-03 00:48

    Check out your .htaccess file or search for some other thing that may redirect your request

提交回复
热议问题