Project archived: I recommend using nuxt-helmet instead. I'm using it.
Nuxt.js HTTP Strict Transport Security module
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
moduleexports = // ... modules: 'nuxt-hsts-module' hsts: processenvNODE_ENV === 'production' // ...
License
MIT
https://github.com/potato4d/nuxt-hsts-module/blob/master/LICENSE