Skip to content

Express middleware that redirects all http requests to https

Notifications You must be signed in to change notification settings

debitoor/httpsonly

Repository files navigation

httpsonly

https://img.shields.io/npm/v/httpsonly Node.js CI

Express middleware that redirects http requests to https.

Also sets Strict Transport Security header, telling browsers to visit by HTTPS for the next year. Also hides the powered by express header.

npm install httpsonly

Usage

var httpsonly = require('httpsonly');
app.use(httpsonly()); //app is the express app

License

MIT

About

Express middleware that redirects all http requests to https

Resources

Stars

Watchers

Forks

Packages

No packages published