vite-plugin-csp-guard
JSON →Vite plugin for generating Content Security Policy (CSP) headers in single-page applications. Current stable version 4.0.1, requires Vite ^8.0.0. Supports automatic hashing of inline scripts/styles, SRI integrity, nonces for SSR, and policy validation. Key differentiators include first-class SPA support, dev-mode CSP enforcement, and framework integration for Vue Router and React. Previously released under csp-toolkit; actively maintained with frequent releases.
Traffic · last 30 days ↓80% vs prev 7d
total hits 12
actors 4 distinct systems
last hit 6d ago human
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany
Resources
homepagevite-csp.tsotne.co.uk ↗
API endpoints
full doc /v1/registry/vite-plugin-csp-guard