UNPKG

@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) 490 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RequestContextStorage = void 0; const async_hooks_1 = require("async_hooks"); /** * This storage is used to store the port of outgoing fetch / undici requests. * This is used to check if ports match when we are inspecting the result of dns resolution. * If the port does not match, it would be a false positive ssrf detection. */ exports.RequestContextStorage = new async_hooks_1.AsyncLocalStorage();