3.0.0 • Published 7 years ago

webpack-csp-plugin v3.0.0

Weekly downloads
69
License
MIT
Repository
github
Last release
7 years ago

Webpack CSP Plugin

This plugin generates a CSP header from your webpack build.

Hashing is used over nonces to prevent modifying the build in unexpected ways.

Right now workers (Worker, SharedWorker, ServiceWorker) are not parsed due to the complexity of how they can be mounted, so you will need to add those rules manually.

new WebpackCspPlugin({
  output: 'csp_header.txt', // or `(header) => { ... }`
  reportUri: 'https://example.com/cspreport', // if you have a csp reporting server
  workers: ['https://worker.io/sw.js'], // if you use workers (see above)
  // defaults, styles, scripts, fonts, etc.
});
3.0.0

7 years ago

2.0.0

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago