GitHub - frux/csp: Monorepo for CSP-related packages

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Repository files navigation

CSP

Hear is a couple of libraries to work with Content-Security-Policy in your JavaScript application.


csp-header

NPM version NPM downloads

Zero-dependency library for generating CSP policies. It can be used for both HTTP header and <meta> element. Supports presets for organizing and managing your policies.


express-csp-header

NPM version NPM downloads

This is a csp-header wrapped in a middleware with auto-tld support and nonce generation. It's ready to use in your Express application.