浏览器跨域问题
cors报错
vue前端解决方法
config下的index.js增加代理
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {
'/api':{
target:'http://localhost:9527/restaurant',
changeOrign: true,
pathRewrite:{
原创
2021-02-24 13:14:06 ·
54 阅读 ·
0 评论