@aikidosec/firewall
Version:
Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks
11 lines (10 loc) • 447 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isAikidoDASTRequest = isAikidoDASTRequest;
const isPlainObject_1 = require("../helpers/isPlainObject");
const AIKIDO_DAST_HEADER = "aikido-api-test";
function isAikidoDASTRequest(context) {
return ((0, isPlainObject_1.isPlainObject)(context.headers) &&
AIKIDO_DAST_HEADER in context.headers &&
context.headers[AIKIDO_DAST_HEADER] === "1");
}