如题所述,uni-app项目转为H5项目,在mainfest.json中配置H5跨域其中proxy配置cookieDomainRewrite属性吗
"proxy": {
"/baseApi": {
"target": " https://www.baidu.com", // 需要跨域的域名
"changeOrigin": true,
"secure": true,
"pathRewrite" : {
"^/baseApi" : ""
},
"**cookieDomainRewrite**": {
"www.baidu.com": "localhost"
}
}
}
0 个回复