UNPKG

vite-plugin-csp-guard

Version:

A Vite plugin that lets SPA applications generate a Content Security Policy (CSP).

10 lines 518 B
/** * How a keyword token (e.g. from `self`, `unsafeEval`) appears in normalized * CSPPolicy / definePolicy source arrays: wrapped in single quotes, e.g. * `"'self'"`, `"'unsafe-eval'"`. */ export declare function cspKeywordForm(token: string): string; export declare const cspSkipElemInherit: Set<string>; export declare function policyHasUnsafeInline(list: string[] | undefined): boolean; export declare function policyHasUnsafeEval(list: string[] | undefined): boolean; //# sourceMappingURL=keywordForm.d.ts.map