JQuery JSON Calls To PHP WebService Always Runs “Error” Callback

后端 未结 4 1083
清酒与你
清酒与你 2020-12-11 11:38

I\'m having this headache now, since I\'ve been having this problem the whole day and, still, can\'t fix it. I\'ve looked on Google and StackOverflow for hours, tried many m

4条回答
  •  無奈伤痛
    2020-12-11 12:05

    Change

    contentType: "application/json utf-8",
    

    to

    contentType: "application/json; charset=utf-8",
    

    The malformation of your contentType header is causing your server to incorrectly interpret the content of your POST request.

提交回复
热议问题