【记录】本地起服务,接口一直重复返回403001,修改本地接口代理处理跨域cookie
"devServer" : {
"port" : 8002,
"disableHostCheck" : true,
"proxy" : {
"/report" : {
"target" : "http://xx.xxxxx.com",
"changeOrigin" : true,
"secure" : false,
"cookieDomainRewrite": {
"xxxxx.com": ""
}
}
}
}
需要增加
"cookieDomainRewrite": {
"xxxxx.com": ""
}
本文来自博客园,作者:秋风2016,转载请注明原文链接:https://www.cnblogs.com/lml2017/p/12269605.html

浙公网安备 33010602011771号