New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

redirect-ssl

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redirect-ssl - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

package.json
{
"name": "redirect-ssl",
"version": "1.2.0",
"version": "1.2.1",
"description": "Connect middleware to enforce https",

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

@@ -31,2 +31,7 @@ # redirect-ssl

### redirect
- Default: `process.env.NODE_ENV === 'production'`
Only enabled in production environment. Force redirecting locally by setting this option to `true`.
### redirectPort

@@ -52,7 +57,2 @@ - Default: `443`

### redirect
- Default: Only when `process.env.NODE_ENV === 'production'`
Only enabled in production environment. Force redirecting locally by setting it to `true`
Status code when redirecting. The reason of choosing `307` for default is:

@@ -59,0 +59,0 @@ - It prevents changing method from `POST` TO `GET` by user agents. (If you don't care, use `302` *Found*)

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