UNPKG

@adonisjs/shield

Version:

A middleware for AdonisJS to keep web applications secure from common web attacks

8 lines (7 loc) 275 B
import { noop } from '../../noop.js'; import type { CspOptions } from '../../types.js'; /** * Factory that returns a function to set the `Content-Security-Policy` header based upon * the user config */ export declare function cspFactory(options: CspOptions): typeof noop;