csp-header
Version:
Content-Security-Policy header generator
13 lines (12 loc) • 347 B
TypeScript
import { CSPHeaderParams } from './types';
export * from './types';
export * from './constants/directives';
export * from './constants/values';
/**
* Build CSP header value from params
*/
export declare function getCSP(params?: CSPHeaderParams): string;
/**
* Build CSP nonce string
*/
export declare function nonce(nonceKey: string): string;