mac 本地运行 http-proxy-middleware ,请求超时

const http = require('http')

 "/customer": {
  target: "http://10.10.111.192:8080/",
     // target: "http://user.jinfu.baohan.com/",
     changeOrigin: true, // 是否启用跨域
     // 解决mac 代理超时问题
     headers: {
       Connection: "keep-alive"
     },
      // 解决mac 代理超时问题
     agent: new http.Agent(),
     // pathRewrite: {}
   },

mac 本地运行 http-proxy-middleware ,请求超时_第1张图片
mac 本地运行 http-proxy-middleware ,请求超时_第2张图片

你可能感兴趣的:(macos,http,网络协议)