想请教一下前端大神们,就是我axios在config下的index下配置了跨域,但是访问还是不行,代码如下
proxyTable: {
'/app': {
// 测试环境下配置
target: 'http://sc.eluolang.cn/zhdj',
// 是否跨域
changeOrigin: true,
pathRewrite: {
'^/app': ''
}
}
},
想请教一下这是什么原因呢?
想请教一下前端大神们,就是我axios在config下的index下配置了跨域,但是访问还是不行,代码如下
proxyTable: {
'/app': {
// 测试环境下配置
target: 'http://sc.eluolang.cn/zhdj',
// 是否跨域
changeOrigin: true,
pathRewrite: {
'^/app': ''
}
}
},