Skip to content

How to skip SSL certificate checking? #277

Discussion options

You must be logged in to vote

In browsers it's not possible. However, if using it in node (for instance, in automated tests using avajs) it can be done like this:

(package.json)
  "ava": {
    "environmentVariables": {
      "NODE_TLS_REJECT_UNAUTHORIZED": "0"
    }
  }

Use only in development mode, like in tests.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sindresorhus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #277 on December 10, 2020 17:32.