nodejs配置本地转发

  作者:chrispy

'/iCloud-rest':{changeOrigin:true,//是否跨域pathRewrite:{'^/iCloud-rest':''//需要rewrite重写的,}}proxyTable:{'/iCloud-rest/channel-manager':{target:'http://10.17.8.148/',changeOrigin:true//是否跨域},'/iCloud-r
'/iCloud-rest': {

        changeOrigin: true,  // 是否跨域
        pathRewrite: {
          '^/iCloud-rest': ''   // 需要rewrite重写的,
        }
      }


proxyTable: {
      '/iCloud-rest/channel-manager': {
         target: 'http://10.17.8.148/',
         changeOrigin: true  // 是否跨域
      },
      '/iCloud-rest': {
        // target: 'http://10.17.9.74/',
        changeOrigin: true,  // 是否跨域
        pathRewrite: {
          '^/iCloud-rest': '' // 需要rewrite重写的,
        }
      }
    },


有用  |  无用

猜你喜欢