Access to XMLHttpRequest at 'XXX' from origin 'XXX' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
报此错误
"devServer": {
"port": 8080, //端口号
"disableHostCheck": true,
"proxy": {
"/oauth": {
"target": "XXXX", //目标接口域名
"changeOrigin": true, //是否跨域
"secure": false ,// 设置支持https协议的代理
"pathRewrite": { "^/oauth": "" }
}
}
},
求解 试了好多方法
3 个回复
3***@qq.com
厉害
lzzzz - 0 warning, 0 error.
怎么解决啊啊啊啊啊啊啊
DCloud_heavensoft
uni-app的H5平台跨域问题,参考:http://ask.dcloud.net.cn/article/35267