0.0.2 • Published 7 years ago

@everreal/express-force-ssl-aws v0.0.2

Weekly downloads
-
License
-
Repository
github
Last release
7 years ago

express-force-ssl-aws

Express middleware to force 301 redirect to HTTPS only when after a load balancer (AWS ALB but not only)

Install:

npm install express-force-ssl-aws

Use:

import Express from 'express';
import {expressForceSSLAws} from '@everreal/express-force-ssl-aws';

const app = new Express();
app.use(expressForceSSLAws());

The library will look for an x-forwarded-proto, and if the header exists and it's not https, it will force redirect to https.

0.0.2

7 years ago

0.0.1

7 years ago