UNPKG

@aikidosec/firewall

Version:

Zen by Aikido is an embedded Application Firewall that autonomously protects Node.js apps against common and critical attacks, provides rate limiting, detects malicious traffic (including bots), and more.

8 lines (7 loc) 426 B
import { Context } from "../../agent/Context"; import { RequestContextStorage } from "./RequestContextStorage"; /** * Is called by wrapOnHeaders if a request results in a redirect. * Check for redirects and store them in the context, if they are originating from user input. */ export declare function onRedirect(destination: URL, requestContext: ReturnType<typeof RequestContextStorage.getStore>, context: Context): void;