nuxt-hsts-module

Provide basic authentication to your Nuxt.js application

Usage no npm install needed!

<script type="module">
  import nuxtHstsModule from 'https://cdn.skypack.dev/nuxt-hsts-module';
</script>

README

Project archived: I recommend using nuxt-helmet instead. I'm using it.

Nuxt.js HTTP Strict Transport Security module

codecov code style: prettier

Add HTTP Strict Transport Security Header to your Nuxt Application.

https://www.npmjs.com/package/nuxt-hsts-module

Installation

$ yarn add nuxt-hsts-module # or npm install

Usage

Edit your nuxt.config.js

module.exports = {
  // ...
  modules: [
    'nuxt-hsts-module'
  ],
  hsts: process.env.NODE_ENV === 'production'
  // ...
}

License

MIT

https://github.com/potato4d/nuxt-hsts-module/blob/master/LICENSE