vue前端跨域
vue前端跨域(记录一下)修改config文件夹的index.js为了让后端能够访问到前端的资源,需要配置跨域支持。在config\index.js 中,找到 proxyTable 位置,修改为以下内容: proxyTable: { '/api': { target: 'http://localhost:8443', changeOrigin: true, pathRewrite: { '^/api': ''
原创
2020-11-02 12:00:22 ·
171 阅读 ·
0 评论