Skip to content
👷 Helmet for Nuxt
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci init version Feb 16, 2019
example
lib
test test: Added test for all supported way to configure Feb 18, 2019
.editorconfig
.eslintignore
.eslintrc.js init version Feb 16, 2019
.gitignore
.huskyrc.js
CHANGELOG.md chore(release): 1.0.1 Feb 18, 2019
LICENSE init version Feb 16, 2019
README.md Add license scan report and status Feb 20, 2019
babel.config.js init version Feb 16, 2019
commitlint.config.js
jest.config.js test: Added test for all supported way to configure Feb 18, 2019
package.json
renovate.json
yarn.lock docs: added docs Feb 18, 2019

README.md

Helmet for nuxt

npm version npm downloads Circle CI Codecov Dependencies Standard JS 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, X-Content-Type-Options and X-XSS-Protection 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: {
    /*
    dnsPrefetchControl: true,
    expectCt: true,
    featurePolicy: true,
    frameguard: true,
    hidePoweredBy: true,
    hsts: true,
    ieNoOpen: true,
    noCache: true,
    noSniff: true,
    permittedCrossDomainPolicies: true,
    referrerPolicy: true,
    xssFilter: true,
    */
 }
}

Development

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

License

MIT License

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

FOSSA Status

You can’t perform that action at this time.