@aikidosec/firewall
Version:
Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks
13 lines (12 loc) • 426 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.trustProxy = trustProxy;
const envToBool_1 = require("./envToBool");
function trustProxy() {
if (!process.env.AIKIDO_TRUST_PROXY) {
// Trust proxy by default
// Most of the time, the application is behind a reverse proxy
return true;
}
return (0, envToBool_1.envToBool)(process.env.AIKIDO_TRUST_PROXY);
}