TooTallNate / proxy-agents

Node.js HTTP Proxy Agents Monorepo
https://proxy-agents.n8.io
872 stars 229 forks source link

Use `rejectUnauthorized` without proxy URL #248

Open eamodio opened 9 months ago

eamodio commented 9 months ago

In v5 I am creating a proxy agent for some use-cases where I only needed to set the rejectUnauthorized flag:

new HttpsProxyAgent({ rejectUnauthorized: false })

But in v7, I don't see how to do the same, since the following throws.

new HttpsProxyAgent('', { rejectUnauthorized: false })

How can this be accomplished in v7?

KyloJorgensen commented 9 months ago

Same +1

I am having the issue with a url too

JasserRomero commented 7 months ago

any solution?

eamodio commented 5 months ago

Anyone have any idea on this one? Would love to be able to move off of v5 if possible.