Node built in fetch dont reject unauthorized - How to handle self-signed certificates? or Why does no

20 Replies, 1469 Views

Fun fact: the node built in fetch dont reject unauthorized certs because back in the day, everyone used self-signed certs for testing. Now it’s just legacy baggage.

To fix it, you gotta use an `https.Agent` like everyone’s saying.

If you’re using TypeScript, definitely add a note to your codebase—this is the kind of thing that’ll bite you later.

Messages In This Thread



Users browsing this thread: 1 Guest(s)