为什么在manifest中这样配置还是抛出跨域错误,求指教
"devServer" : {
"port" : 8080,
"disableHostCheck" : true,
"proxy" : {
"/*" : {
"target" : "http://10.0.0.42",
"changeOrigin" : true,
"secure" : false
}
}
}
![6***@qq.com](http://img-cdn-tc.dcloud.net.cn/uploads/avatar/000/61/40/29_avatar_mid.jpg?v=0)
6***@qq.com
- 发布:2019-05-11 16:57
- 更新:2019-10-09 14:27
- 阅读:2420
1 个回复
Sun7
"h5" : {
"devServer" : {
"https": false,
"disableHostCheck": true
},
"router": {
"mode": "history"
}
}
试试这个