|
[云开发]
开启接口验证设置POST请求失败返回400
[复制链接]
开启数据云接口验证之后,使用ajax发起post请求失败,返回{"msg":"{\"error\":{\"statusCode\":400,\"name\":\"SyntaxError\",\"message\":\"Unexpected token p in JSON at position 0\"}}","body":{"error":{"statusCode":400,"name":"SyntaxError","message":"Unexpected token p in JSON at position 0"}},"statusCode":400,"code":0,"headers":{"X-Android-Sent-Millis":"1636956441840","Vary":"Origin, Accept-Encoding","Content-Type":"application/json; charset=utf-8","X-Powered-By":"Express","Date":"Mon, 15 Nov 2021 06:07:22 GMT","X-Android-Selected-Protocol":"http/1.1","X-Content-Type-Options":"nosniff","Server":"nginx","Access-Control-Allow-Credentials":"true","Connection":"close","X-Android-Response-Source":"NETWORK 400","X-Android-Received-Millis":"1636956442027"}}
请求头相关验证和请求参数设置都是正确的,不开启验证使用没问题开启就返回这个错误,get请求可以正常使用
|
|