Create CSP meta tags and header configs from all sources in the final Vite html
npm install vite-plugin-csp






Leverages csp-typed-directives to create typed CSP policies and validated interdependant headers.
e.g. the CSP, CSP Report-Only, Report-To, and Referrer-Policy headers.
Mostly config compatible with csp-html-webpack-plugin
Install the plugin with npm:
``shell`
$ npm install --save-dev vite-plugin-cspOr shorthand
npm i -D vite-plugin-csp
- Relative modules are resolved relative to the CWD, not the file
- no SSR support (and thus no nonce support)
- No parsing of JS embeded sources (since that would require framework specific plugins)
- Only script and style related directives are supported (except for the inclusion of report-to for generating headers)