首页 > 其他 > 详细

Vue脚手架中的跨域问题

时间:2020-05-09 02:55:54      阅读:144      评论:0      收藏:0      [点我收藏+]

Vue中脚手架的跨域解决图示

技术分享图片

  • 附代码:
proxyTable: {
      ‘/api‘:{
        target:"http://localhost:3000",
        changeOrigin:true,
        pathRewrite:{
          "^/api":"http://localhost:3000"
        }
      }
    },

解决后的效果

技术分享图片

Vue脚手架中的跨域问题

原文:https://www.cnblogs.com/AngelTp/p/12853736.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!