MCPcopy Index your code
hub / github.com/nodejs/node / getAllowUnauthorized

Function getAllowUnauthorized

lib/internal/options.js:204–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202}
203
204function getAllowUnauthorized() {
205 const allowUnauthorized = process.env.NODE_TLS_REJECT_UNAUTHORIZED === '0';
206
207 if (allowUnauthorized && warnOnAllowUnauthorized) {
208 warnOnAllowUnauthorized = false;
209 process.emitWarning(
210 'Setting the NODE_TLS_REJECT_UNAUTHORIZED ' +
211 'environment variable to \'0\' makes TLS connections ' +
212 'and HTTPS requests insecure by disabling ' +
213 'certificate verification.');
214 }
215 return allowUnauthorized;
216}
217
218module.exports = {
219 getCLIOptionsInfo: getCLIOptionsInfoFromBinding,

Callers 1

wrap.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…