Giter Site home page Giter Site logo

nuxt-helmet's Introduction

Helmet for nuxt

npm version npm downloads Circle CI Codecov 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,
    ...
    */
 }
}

Options

Content Security Policy middleware is disabled by default on this module.

Visit Helmet documentation for detailed information about configurable options.

Development

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Run yarn dev:prepare to generate type stubs.
  4. Start development server using yarn dev

Sponsor

Buy Me A Coffee

License

MIT License

Copyright (c) Victor Perez [email protected]

FOSSA Status

nuxt-helmet's People

Contributors

dankerow avatar dependabot[bot] avatar doron2402 avatar fossabot avatar logustra avatar victor-perez avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.