vite-plugin-csp-guard
Version:
A Vite plugin that lets SPA applications generate a Content Security Policy (CSP).
9 lines • 378 B
TypeScript
/**
* Runtime SRI injection - patches DOM to add integrity to dynamically created elements.
* This function is stringified and injected into entry chunks. Must be self-contained.
*/
export declare function installSriRuntime(sriByPathname: Record<string, string>, opts?: {
crossorigin?: string;
skipResources?: string[];
}): void;
//# sourceMappingURL=runtime.d.ts.map