https.Agent support for proxy server #49139
Labels
duplicate
Issues and PRs that are duplicates of other issues or PRs.
feature request
Issues that request new features to be added to Node.js.
http
Issues or PRs related to the http subsystem.
What is the problem this feature will solve?
I am trying to write a Nuxt3 application where the nitro server routes need to make Rest calls to a Kubernetes API Server in an environment where my company's network requires the use of an HTTP proxy server to reach the Kubernetes cluster.
When not on the corporate network, I am able to use code that looks like this:
However, when on the corporate network, I need to switch to using the
https-proxy-agent
to get proxy server support but unfortunately, it does not appear to support passing the CA certificate data through so the request is failing on a TLS handshake error. I would like to be able to use the built-in https.Agent both with and without an HTTP proxy server.What is the feature you are proposing to solve the problem?
The need to use a third-party package like
https-proxy-agent
to get support for a proxy server.What alternatives have you considered?
I tried passing the CA certificate option to the
HttpsProxyServer
constructor but it does not seem to be honoring it. See TooTallNate/proxy-agents#234.The text was updated successfully, but these errors were encountered: