2.1.1 • Published 2 years ago

nuxt-helmet v2.1.1

Weekly downloads
10,348
License
MIT
Repository
github
Last release
2 years ago

Helmet for nuxt

npm version npm downloads Circle CI Codecov Dependencies Standard JS Buy Me A Coffee FOSSA Status

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-Policy and X-Content-Type-Options headers. Beside that this module will also set by default the X-Permitted-Cross-Domain-Policies header.

📖 Release Notes | 📖 Helmet Docs

Setup

  1. Add nuxt-helmet dependency with yarn or npm into your project
  2. Add nuxt-helmet at the beginning of the modules section of nuxt.config.js
  3. 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

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using npm run dev

Sponsor

Buy Me A Coffee

License

MIT License

Copyright (c) Victor Perez vpjs@victor-perez.nl

FOSSA Status

3.0.0

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.1

3 years ago

2.0.0

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.3

5 years ago