express-force-https

1.0.0 • Public • Published

express-force-https

stable

Express middleware to redirect all http requests to https.

Usage

NPM

A simple module to check if the current request is using https. If not, it will redirect to the same route, but using https. It also checks for cases of localhost and disables the redirect if so.

npm i express-force-https
var express = require('express');
var secure = require('express-force-https');

var app = express();
app.use(secure);

License

MIT, see LICENSE.md for details.

Package Sidebar

Install

npm i express-force-https

Weekly Downloads

2,094

Version

1.0.0

License

MIT

Last publish

Collaborators

  • hperigo
  • gabroell
  • josdelgaur
  • jam3dev
  • njam3
  • iranreyes
  • namniak
  • donghyukjang
  • alemesa
  • neoli
  • colin-j3
  • jmckinnell
  • n0wak
  • amelierosser
  • artemleznikov
  • jeffong
  • nickfish