[b]"Node built in fetch dont reject unauthorized - How to handle self-signed certificates?"[/b] or [b]"Why does no

20 Replies, 1451 Views

Thanks everyone! Super helpful. I tried the `https.Agent` trick and it works—finally failing on bad certs like it should.

Still weird that the node built in fetch dont reject unauthorized certs by default, but at least there’s a fix.

Follow-up: Anyone know if this is the same in Deno? Or do they handle it better?

Also, shoutout to the `got` and `axios` suggestions—might switch to one of those for less headache.

Messages In This Thread



Users browsing this thread: 1 Guest(s)