# helmet

*noun*

say it: **“HEL-mit”** **/ˈhɛlmɪt/**

An Express package that adds protective security headers to every response a server sends.

## What does **helmet** do in an Express app?

**helmet** is an Express middleware package that adds a set of security headers to every response, such as one that stops browsers from guessing a file's type, and removes the `X-Powered-By` header that announces Express.

```javascript
import helmet from "helmet";

app.use(helmet());
// every response now carries headers such as
// X-Content-Type-Options: nosniff
```

## In a sentence

- “After adding **helmet**, the X-Powered-By: Express header was gone from every answer.”
- “One line, app.use(**helmet**()), gave the coffee club API a dozen security headers.”

Level: Journeyman · [More Node.js terms at this level](https://www.ask-codey.com/glossary?category=nodejs&level=3)

Updated: November 19, 2026

Source: https://www.ask-codey.com/glossary/helmet
