本地解决跨域请求三方接口是可以,但是上传服务器后两接口一个可以一个不行
两接口
在本地我通过proxy处理:
上传服务器
换个位置试试。感觉是下面的覆盖掉上面的了
location / {
root F:/3dpro;
index index.html index.htm;
add_header Access-Control-Allow-Credentials true;
add_header Access-Control-Allow-Origin $http_origin;
}
注意到这里使用的协议有点问题,修改试试
确保可以通过服务器ping通那个https 地址