New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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 0.2.1 to 0.3.0

8

index.js

@@ -10,4 +10,6 @@ "use strict";

if(!isHttps) {
next();
} else {
var isHttps = (req.headers['x-forwarded-proto'] == 'https');
}
if(isHttps){
// Only redirect GET methods

@@ -19,2 +21,4 @@ if(req.method === "GET") {

}
} else {
next();
}

@@ -21,0 +25,0 @@ }

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

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

@@ -24,3 +24,3 @@ express-enforces-ssl

// use HTTPS() in case you are behind a load balancer (e.g. Heroku)
// use HTTPS(true) in case you are behind a load balancer (e.g. Heroku)
app.use(express_enforces_ssl.HTTPS());

@@ -27,0 +27,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc