vue中的跨域


proxyTable: {
        '/zabbix_api': {
        target: 'http://10.88.22.8',//设置你调用的接口域名和端口号 别忘了加http
        changeOrigin: true,
        pathRewrite: {
          '^/zabbix_api/': '/zabbix_api/',
        }
        },
        '/passwd': {
        target: 'http://10.88.22.8',//设置你调用的接口域名和端口号 别忘了加http
        changeOrigin: true,
        pathRewrite: {
          '^/passwd/': '/passwd/',
        }
        }
    },

  

猜你喜欢

转载自www.cnblogs.com/randomlee/p/10167291.html