Package Exports
- nuxt-helmet
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nuxt-helmet) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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,X-Content-Type-OptionsandX-XSS-Protectionheaders. 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: {
/*
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
- Clone this repository
- Install dependencies using
yarn installornpm install - Start development server using
npm run dev
License
Copyright (c) Victor Perez vpjs@victor-perez.nl