🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

express-enforces-ssl

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-enforces-ssl - npm Package Compare versions

Comparing version

to
0.2.1

6

index.js

@@ -9,9 +9,3 @@ "use strict";

// Second, if the request headers can be trusted (e.g. because they are send
// by a proxy), check if x-forward-proto is set to https
if(!isHttps) {
isHttps = (req.protocol === "https");
}
if(isHttps) {
next();

@@ -18,0 +12,0 @@ } else {

2

package.json
{
"name": "express-enforces-ssl",
"version": "0.2.0",
"version": "0.2.1",
"description": "Enforces SSL for node.js express projects",

@@ -5,0 +5,0 @@ "main": "index.js",