vue-cli跨域 反向代理
vue-cli (旧版本) axios请求跨域
在config文件夹index.js中proxyTable 里配置
proxyTable: {
'/api': {
target: 'http://localhost:8002/', // 请求接口域名
// secure: false, //https接口,需要配置这个参数
changeOrigin: true,
pathRewrite: {
'^/api':
原创
2021-03-02 17:40:17 ·
177 阅读 ·
0 评论