Comparing version 1.3.6 to 1.3.7
@@ -52,3 +52,6 @@ 'use strict' | ||
if (res.statusCode && res.headers) { | ||
if (opts.enableCORS && request.headers.origin) res.headers['access-control-allow-origin'] = '*' | ||
if (opts.enableCORS && request.headers.origin) { | ||
res.headers['access-control-allow-origin'] = '*' | ||
res.headers['access-control-expose-headers'] = 'Content-Length, X-Bfs-Responseurl' | ||
} | ||
res.headers['X-Bfs-Responseurl'] = (request.headers['x-forwarded-proto'] || 'http') + '://' + request.headers.host + '//http' + (scheme === 'http' ? '' : 's') + ':' + options.href | ||
@@ -55,0 +58,0 @@ if ((res.statusCode >= 200 && res.statusCode <= 299) || res.statusCode === 304) { |
{ | ||
"name": "bfn-proxy", | ||
"version": "1.3.6", | ||
"version": "1.3.7", | ||
"description": "HTTP request proxy middleware for node.js", | ||
@@ -5,0 +5,0 @@ "author": "Blue Fidelity Inc. (https://www.bluefidelity.com/)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11440
133