proxy 配置报错 Error occured while trying to proxy to:
项目使用create-react-app脚手架搭建之前配置本地代理如下后面项目需要代理https,配置代理报错 500 响应 Error occured while trying to proxy to:发现重新配置添加changeOrigin: true 就可以了proxy: {'/cas': {target: 'https://**.**.**.**:30090',secure: false,
·
项目使用create-react-app脚手架搭建
之前配置本地代理如下
后面项目需要代理https,配置代理报错 500 响应 Error occured while trying to proxy to:
发现重新配置添加changeOrigin: true 就可以了
proxy: {
'/cas': {
target: 'https://**.**.**.**:30090',
secure: false,
changeOrigin: true,
pathRewrite: { "": "" }
},
},```
更多推荐
已为社区贡献1条内容
所有评论(0)