[已删除]
[已删除]
  • 发布:2020-02-16 10:29
  • 更新:2020-04-06 21:38
  • 阅读:2033

在谷歌浏览器下面,无论使用任何方式.无法解决跨域问题

分类:uni-app

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": "" }    
            }  
        }  
    },  

求解 试了好多方法

2020-02-16 10:29 负责人:无 分享
已邀请:
3***@qq.com

3***@qq.com

厉害

lzzzz

lzzzz - 0 warning, 0 error.

怎么解决啊啊啊啊啊啊啊

DCloud_heavensoft

DCloud_heavensoft

uni-app的H5平台跨域问题,参考:http://ask.dcloud.net.cn/article/35267

该问题目前已经被锁定, 无法添加新回复