解决Vue开发过程中与后台服务器跨域问题

可以通过vue.config.js文件来配置使用逆向服务器

// Vue.config.js文件
module.exports = {
  devServer: {
    proxy: 'http://localhost:3000'
  }
}


发布了151 篇原创文章 · 获赞 1 · 访问量 1850

猜你喜欢

转载自blog.csdn.net/qq_45802159/article/details/103934350