Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http-proxy 支持设置 所要转发的host不验证ssl证书吗?看文档好像不支持? #2564

Open
huangapple opened this issue Dec 7, 2022 · 2 comments
Labels
type: enhancement New feature or request

Comments

@huangapple
Copy link
Contributor

export default {
  httpProxy: {
    match: /\/tfs\//,
    host: 'https://110.22.11.2:9332',
  },
};

我要转发的这个是ssl, 但校验不过的。

@huangapple huangapple changed the title http-proxy 支持设置 所要转发的host不验证ssl证书吗? http-proxy 支持设置 所要转发的host不验证ssl证书吗?看文档好像不支持? Dec 7, 2022
@czy88840616 czy88840616 added the type: enhancement New feature or request label Dec 11, 2022
@quankun8006
Copy link

看这个提交是不是没有合入主干,"@midwayjs/http-proxy": "^3.18.2"这版本还没有支持吗?请问怎么解决这个问题?

@quankun8006
Copy link

使用配置,不生效
extReqOptions: {
//用来设置不校验https的ssl
httpsAgent: new https.Agent({rejectUnauthorized: false})
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Development

No branches or pull requests

3 participants