UNPKG

vite-plugin-csp-guard

Version:

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

11 lines 483 B
import { HtmlTagDescriptor } from "vite"; import { HashCollection } from "../types"; import { type CSPPolicy, type DefinedPolicy } from "csp-toolkit"; type GeneratePolicyProps = { policy: CSPPolicy | DefinedPolicy; collection: HashCollection; }; export declare const generatePolicyString: ({ collection, policy, }: GeneratePolicyProps) => string; export declare const policyToTag: (policy: string) => HtmlTagDescriptor[]; export {}; //# sourceMappingURL=createPolicy.d.ts.map