UNPKG

csp_evaluator

Version:

Evaluate Content Security Policies for a wide range of bypasses and weaknesses

13 lines (10 loc) 308 B
/** * @fileoverview Shared interfaces for functions that check CSP policies. */ import {Csp} from '../csp'; import {Finding} from '../finding'; /** * A function that checks a given Csp for problems and returns an unordered * list of Findings. */ export type CheckerFunction = (csp: Csp) => Finding[];