Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

proxy-middleware

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proxy-middleware - npm Package Compare versions

Comparing version 0.8.0 to 0.9.0

6

index.js

@@ -36,4 +36,6 @@ var os = require('os');

// Forwarding the host breaks dotcloud
delete opts.headers.host;
if (!options.preserveHost) {
// Forwarding the host breaks dotcloud
delete opts.headers.host;
}

@@ -40,0 +42,0 @@ var myReq = request(opts, function (myRes) {

{
"name": "proxy-middleware",
"version": "0.8.0",
"version": "0.9.0",
"description": "http(s) proxy as connect middleware",

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

@@ -25,2 +25,3 @@ [![Build Status](https://secure.travis-ci.org/andrewrk/connect-proxy.png)](http://travis-ci.org/andrewrk/connect-proxy)

- `cookieRewrite`: this option can be used to support cookies via the proxy by rewriting the cookie domain to that of the proxy server. By default cookie domains are not rewritten. The `cookieRewrite` option works as the `via` option - if you pass `true` the local hostname will be used, and if you pass a string that will be used as the rewritten cookie domain.
- `preserveHost`: When enabled, this option will pass the Host: line from the incoming request to the proxied host. Default: `false`.

@@ -27,0 +28,0 @@ ### Usage with route:

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