strict-transport-security
Node.js middleware to add Strict-Transport-Security header according to RFC6797
Install
$ npm install strict-transport-security --save
Tests
$ npm install --dev
$ npm test
Usage
const sts = ;const express = ;const app = ; const globalSTS = sts;const localSTS = sts; // This will apply this policy to all requestsapp; app; // This will apply the local policy just to this path, overriding the globla policyapp; app;