"h5": { "title": "互联云玺", "template": "", "router": { "base": "/h5/", "mode": "hash" }, "devServer": { "https": false, "port": 5556, "proxy": { "/api": { "target": "http://47.103.26.30:8080", //目标接口域名 "changeOrigin": true, //是否跨域 "secure": false ,// 设置支持https协议的代理 "pathRewrite":{ "^/api": "" //需要rewrite重写的, } } } }, "optimization": { "treeShaking": { "enable": true } } }
uniapp h5中解决跨域问题
猜你喜欢
转载自www.cnblogs.com/lizhao123/p/12084549.html
今日推荐
周排行