We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5c2381 commit bc6a237Copy full SHA for bc6a237
lib/http-proxy/common.js
@@ -4,8 +4,7 @@ var common = exports,
4
required = require('requires-port');
5
6
var upgradeHeader = /(^|,)\s*upgrade\s*($|,)/i,
7
- isSSL = /^https|wss/,
8
- cookieProps = ['domain', 'path'];
+ isSSL = /^https|wss/;
9
10
/**
11
* Simple Regex for testing if protocol is https
@@ -212,9 +211,6 @@ common.urlJoin = function() {
212
211
* @api private
213
*/
214
common.rewriteCookieProperty = function rewriteCookieProperty(header, config, property) {
215
- if(cookieProps.indexOf(property) === -1) //Property not supported
216
- return header;
217
-
218
if (Array.isArray(header)) {
219
return header.map(function (headerElement) {
220
return rewriteCookieProperty(headerElement, config, property);
0 commit comments