请求代码:
uni.request({
method: 'POST',
url: '/api/app/index.php?i=1&m=dy_more&c=adminapi&do=login&action=reg',
data: {
text: 'uni.request'
},
success: (res) => {
console.log(res.data);
this.text = 'request success';
}
});
nginx代理:
location /api/ {
proxy_pass https://www.xxxx.com/;
}
结果:
正常:
不正常: