HBuilderX+tmui创建的项目在manifest.json配置了代理,
"web": {
"title": "tmui4.0x",
"router": {
"mode": "hash",
"base": "./"
},
"devServer": {
"port": 3721,
"disableHostCheck": true,
"proxy":{
"/auth" : {
"target" : "https://xxx.xxxxx.cn",
"pathRewrite": {
"^/auth": "/auth"
}
}
}
}
},
但是为什么在web端使用/auth代理会报428错误。这个接口在其他项目配置代理后是正常访问的。在anbroid也无法正常使用
0 个回复