uni-app捣鼓之路---------跨域解决
在uni-app开发,首先解决的是如何跨域,解决很简单,在manifest.json配置文件配置即可,配置如下
/* h5特有相关 */
"h5": {
"devServer": {
"port": 8080,
"disableHostCheck": true,
"proxy": {
"/*": {
"target": "http://localhost:8080",
"changeOrigin": true,
"ws": false,
"secure": false
}
}
}
},
本文来自Herry小屋,作者:孙振光,转载请注明原文链接:https://www.cnblogs.com/sunzhenguang/p/15058944.html