Comparing version 1.0.2 to 1.0.3
@@ -335,6 +335,13 @@ module.exports = function (browser) { | ||
// must delete values before re set | ||
let a_orgin = details.responseHeaders['Access-Control-Allow-Origin'] || details.responseHeaders['Access-Control-Allow-Origin'.toLowerCase()] | ||
delete details.responseHeaders['Access-Control-Allow-Credentials'] | ||
delete details.responseHeaders['Access-Control-Allow-Methods'] | ||
delete details.responseHeaders['Access-Control-Allow-Headers'] | ||
delete details.responseHeaders['Access-Control-Allow-Origin'] | ||
delete details.responseHeaders['Access-Control-Allow-Credentials'.toLowerCase()] | ||
delete details.responseHeaders['Access-Control-Allow-Methods'.toLowerCase()] | ||
delete details.responseHeaders['Access-Control-Allow-Headers'.toLowerCase()] | ||
delete details.responseHeaders['access-control-allow-origin'.toLowerCase()] | ||
delete details.responseHeaders['Access-Control-Allow-Origin'.toLowerCase()] | ||
@@ -344,3 +351,3 @@ details.responseHeaders["Access-Control-Allow-Credentials".toLowerCase()] = "true" | ||
details.responseHeaders["Access-Control-Allow-Headers".toLowerCase()] = "Origin, X-Requested-With, Content-Type, Accept" | ||
details.responseHeaders["Access-Control-Allow-Origin".toLowerCase()] = "*" | ||
details.responseHeaders["Access-Control-Allow-Origin".toLowerCase()] = a_orgin || "*" | ||
@@ -347,0 +354,0 @@ callback({ |
{ | ||
"name": "ibrowser", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Integration For Social-browser.com", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
93159
2396