Security

Helmet Headers

Security headers on every response.

1 min readDocumentationEdit this page

Usage#

typescript
import { helmet } from '@AxilJS/security'
app.use(helmet())

Headers set#

HeaderPurpose
Content-Security-PolicyPrevents XSS
X-Frame-OptionsPrevents clickjacking
Strict-Transport-SecurityForces HTTPS
X-Content-Type-OptionsPrevents MIME sniffing
Referrer-PolicyControls referrer info

Note

helmet() removes X-Powered-By by default.

Help improve the documentation

AxilJS is open source and documentation improvements are welcome.

AxilJS DocumentationMIT License · Built by SyntaxilitY