webpack 模糊地址代理websocket

webpack 模糊地址代理websocket
proxy

    '/**/ws/server/**/**/websocket': {
      // 7.1测试服务器
      // target: 'http://192.168.190.129:8088',
      target: 'http://192.168.190.46:31218/',
      // target: 'http://192.168.190.42:8088/',
      // target: 'http://127.0.0.1:8701',
      changeOrigin: false,
      ws:true

      //headers: { 'Proxy-Context-Path': 'api' },
    },

posted @ 2022-10-28 14:54  leechg  阅读(225)  评论(0编辑  收藏  举报