diff --git a/lib/http-proxy/common.js b/lib/http-proxy/common.js index 8fae2cd25..b2f302cad 100644 --- a/lib/http-proxy/common.js +++ b/lib/http-proxy/common.js @@ -4,8 +4,7 @@ var common = exports, required = require('requires-port'); var upgradeHeader = /(^|,)\s*upgrade\s*($|,)/i, - isSSL = /^https|wss/, - cookieProps = ['domain', 'path']; + isSSL = /^https|wss/; /** * Simple Regex for testing if protocol is https @@ -212,9 +211,6 @@ common.urlJoin = function() { * @api private */ common.rewriteCookieProperty = function rewriteCookieProperty(header, config, property) { - if(cookieProps.indexOf(property) === -1) //Property not supported - return header; - if (Array.isArray(header)) { return header.map(function (headerElement) { return rewriteCookieProperty(headerElement, config, property);