How to properly set up a Node.js HTTPS test for secure connections? or What's the best way to run a N

18 Replies, 1661 Views

Have you tried `process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'`?

It’s like `rejectUnauthorized: false` but globally. Still a hack, but useful for quick tests.

For a real fix, you’ll need to sort out the cert trust. `mkcert` (mentioned above) is gold.

Messages In This Thread



Users browsing this thread: 1 Guest(s)