express-redirect-secure

0.0.1 • Public • Published

express-redirect-secure

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-redirect-secure
var express = require('express');
var secure = require('express-redirect-secure');

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

License

MIT, see LICENSE.md for details.

Readme

Keywords

none

Package Sidebar

Install

npm i express-redirect-secure

Weekly Downloads

1

Version

0.0.1

License

ISC

Last publish

Collaborators

  • ikeyman