CodeBrowser / npm / helmet
helmet@8.3.0
// help secure Express/Connect apps with various HTTP headers
$ npm install helmet
downloads/wk
12,319,046
license
MIT
version
8.3.0
published
Jul 12, 2026
What is helmet?
Helmet is a middleware for Express and Connect applications that automatically sets HTTP security headers to protect against common web vulnerabilities. It configures headers like Content-Security-Policy, X-Frame-Options, Strict-Transport-Security, and others with secure defaults, reducing the effort needed to manually implement security best practices. Developers use Helmet to quickly harden their applications against attacks like clickjacking, cross-site scripting, and other header-based exploits without having to understand or configure each security header individually.
Keywords
#express #security #headers #backend #content-security-policy #cross-origin-embedder-policy #cross-origin-opener-policy #cross-origin-resource-policy #origin-agent-cluster #referrer-policy #strict-transport-security #x-content-type-options #x-dns-prefetch-control #x-download-options #x-frame-options #x-permitted-cross-domain-policies #x-powered-by #x-xss-protection
Maintainers
adam_baldwin, evanhahn