mainfest.js
"h5":{
"devServer" : {
"disableHostCheck" : true,
"port" : 443,
"proxy" : {
"/" : {
"target" : "https://后端域名",
"changeOrigin" : true,
"secure" : false,
"pathRewrite" : {
"^/" : "/"
}
}
}
}
}
2 个回复
CODE_XU
如果你配置不好 devServer,建议你尝试下面两种简单方式:
王得福
让后端加一下allow-origin