Skip to content

Instantly share code, notes, and snippets.

@joeyguerra
Created March 20, 2023 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joeyguerra/54e7a2f89eea1f54911c5301459baa31 to your computer and use it in GitHub Desktop.
Save joeyguerra/54e7a2f89eea1f54911c5301459baa31 to your computer and use it in GitHub Desktop.
Ignore the cert when making an HTTPS request to a self-signed service.
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment