title: NodeJS equivalent of curl -k flag?
body: <p>I am working behind a corporate firewall trying to use external APIs, I am getting rejected with this error: UNABLE_TO_GET_ISSUER_CERT_LOCALLY. This is in a NextJS application and I'm trying to call the data server side using Next's getServerSideProps(because I need to authenticate the user).</p>
  <p>I cannot really call any API from outside our VPN locally, but if I use curl &quot;url&quot; -k, then that works. Is there an equivalent to -k for NodeJS?</p>
  <p>FWIW, setting <code> rejectUnauthorized: false</code> in the headers does not work here.</p>