How to bypass the self signed certificate(https) ?
I need to bypass the self signed certificate.(ie. without checking the certificate).
There are a couple of options, one far less secure than the other, described on Stack Overflow:
tldr; add this to the top of your file:
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
Thanks Iain Simmons.