nuxt-helmet
Helmet for nuxt
226,646
188
| Install | |
|---|---|
npm install nuxt-helmet@3.0.0 |
|
| Latest Version: | 3.0.0 |
| License: | MIT |
| Last Updated: | Jan 27, 2023 |
| Links: | GitHub · npm |
Maintainer: victor-perez
Helmet for nuxt
Easy Helmet integration with Nuxt.js
Helmet helps you secure your Nuxt apps by setting various HTTP headers. By default Helmet will set the
X-DNS-Prefetch-Control,X-Frame-Options,Strict-Transport-Security,X-Download-Options,Expect-Ct,Referrer-PolicyandX-Content-Type-Optionsheaders. Beside that this module will also set by default theX-Permitted-Cross-Domain-Policiesheader.
📖 Release Notes | 📖 Helmet Docs
Setup
- Add
nuxt-helmetdependency withyarnornpminto your project - Add
nuxt-helmetat the beginning of themodulessection ofnuxt.config.js - Configure it:
{
modules: [
'nuxt-helmet'
//...other modules
],
// helmet options
// @see https://helmetjs.github.io/docs/
helmet: {
/*
frameguard: false,
...
*/
}
}
Note
Use csp property provided by Nuxt.js v2.11.0 for Content Security Policy (CSP) | 📖 Nuxt Docs
Development
- Clone this repository
- Install dependencies using
yarn installornpm install - Start development server using
npm run dev
Sponsor
License
Copyright (c) Victor Perez vpjs@victor-perez.nl
Related Packages
nuxt-csp-report
A Nuxt module for collecting, normalizing, and persisting Content Security Polic...
16,874
18
Version History
| Version | Released | License |
|---|---|---|
| 3.0.0 | MIT | |
| 2.1.1 | MIT | |
| 2.1.0 | MIT | |
| 2.0.1 | MIT | |
| 2.0.0 | MIT | |
| 1.2.3 | MIT | |
| 1.2.2 | MIT | |
| 1.2.1 | MIT | |
| 1.2.0 | MIT | |
| 1.1.1 | MIT | |
| 1.1.0 | MIT | |
| 1.0.3 | MIT | |
| 1.0.2 | MIT | |
| 1.0.1 | MIT | |
| 1.0.0 | MIT | |
| 0.0.3 | MIT |
