webpack跨域proxyTable配置

2018-07-19  本文已影响40人  爱忽悠的唐唐在晃悠
proxyTable: {
        '/tangyuhui/api/wechat': {
          target: 'http://127.0.0.1:3000',
          secure: false,
          pathRewrite: {
            '^/tangyuhui/api': ''
        }
        },
        '/qlogo':{
          target: 'http://thirdwx.qlogo.cn',
          secure: false,
          pathRewrite: {
            '^/qlogo': ''
           }
       }
    }
上一篇 下一篇

猜你喜欢

热点阅读