1.proxyTable: {
‘/api’:{
target:‘http://wxtest.yaoyu-soft.com’,
changeOrigin:true,
pathRewrite:{
“^/api”:’/’
}
}
vue解决跨域
vue解决跨域
需要把原来公共域名注释掉,
vue解决跨域
如network报404,则ping域名,如果ping不通,则表示后台接口有问题

2.proxyTable: {
‘/api’:{
target:‘http://wechat.sportsmonster.cn’,
changeOrigin:true,
pathRewrite:{
‘^/api’: ‘/public’
}
}
},vue解决跨域
vue解决跨域

相关文章:

  • 2021-08-25
  • 2022-12-23
  • 2021-05-18
  • 2021-11-06
  • 2021-04-08
  • 2022-01-21
猜你喜欢
  • 2021-09-05
  • 2021-05-17
  • 2022-01-07
  • 2021-08-31
  • 2022-01-14
  • 2021-11-29
相关资源
相似解决方案