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.
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.
