https://www.cnblogs.com/gxp69/p/13099074.html
"h5" : {
"devServer" : {
"port" : 8080, //端口号
"disableHostCheck" : true,
"proxy" : {
"/api" : {
"target" : "https://wx.heb*****.com", //目标接口域名
"changeOrigin" : true, //是否跨域
"secure" : true, // 设置支持https协议的代理
"pathRewrite": {
"^/api": ""
}
}
}
}
}
网友评论