如图,小程序、H5侧都正常,
APP测试的时候不正常,打印出response如下:
{
"statusCode": 401,
"header": {
"Access-Control-Max-Age": "600",
"Access-Control-Allow-Origin": "*",
"X-Android-Sent-Millis": "1565619159826",
"X-Android-Response-Source": "NETWORK 401",
"Content-Length": "68",
"_": "HTTP/1.0 401 UNAUTHORIZED",
"X-Android-Selected-Protocol": "http/1.0",
"Access-Control-Allow-Headers": "authorization,x-requested-with,content-type",
"Date": "Mon, 12 Aug 2019 14:12:39 GMT",
"X-Android-Received-Millis": "1565619159892",
"Content-Type": "application/json",
"Access-Control-Allow-Methods": "PUT,GET,POST,DELETE",
"Server": "Werkzeug/0.14.1 Python/3.6.4"
},
"errMsg": "request:ok"
}
c***@petal.pro
- 发布:2019-08-12 22:26
- 更新:2020-08-28 17:32
- 阅读:1075
【报Bug】uni.request在app端的sucess回调40x状态码情况下没有data数据
分类:uni-app