nodejs strict ssl false 1

nodejs strict ssl false

process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';

Here is what the above code is Doing:
1. We’re importing the request module, which is used to make HTTP requests.
2. We’re importing the json module, which is used to parse the JSON responses we get from the API.
3. We’re setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to 0. This is a workaround for a bug in the request module.

Similar Posts