Comparing version 2.6.1 to 2.6.2
@@ -15,5 +15,6 @@ 'use strict'; | ||
response.addHttpProperty(N.ACCESS_CONTROL_ALLOW_METHODS, req.httpProps[N.ACCESS_CONTROL_REQUEST_METHOD]); | ||
response.addHttpProperty(N.ACCESS_CONTROL_ALLOW_HEADERS, req.httpProps[N.ACCESS_CONTROL_ALLOW_HEADERS]); | ||
response.addHttpProperty(N.ACCESS_CONTROL_ALLOW_HEADERS, req.httpProps[N.ACCESS_CONTROL_REQUEST_HEADERS]); | ||
response.addHttpProperty(N.ACCESS_CONTROL_MAX_AGE, req.cors.maxAgeInSeconds); | ||
response.addHttpProperty(N.ACCESS_CONTROL_ALLOW_CREDENTIALS, true); // Refactor into response | ||
res.set(response.httpProps); | ||
res.status(200).send(); | ||
@@ -20,0 +21,0 @@ } |
@@ -8,3 +8,3 @@ 'use strict'; | ||
class AzuriteResponse { | ||
constructor({ proxy = undefined, payload = undefined, query = {}, cors = undefined }) { | ||
constructor({ proxy = undefined, payload = undefined, query = {}, cors = undefined } = {}) { | ||
this.httpProps = {}; | ||
@@ -38,2 +38,3 @@ this.proxy = proxy; | ||
this.httpProps[N.ACCESS_CONTROL_ALLOW_CREDENTIALS] = true; | ||
this.httpProps[N.ACCESS_CONTROL_ALLOW_HEADERS] = cors.exposedHeaders; | ||
} | ||
@@ -40,0 +41,0 @@ } |
{ | ||
"name": "azurite", | ||
"version": "2.6.1", | ||
"version": "2.6.2", | ||
"description": "A lightweight server clone of Azure Blob, Queue, and Table Storage that simulates most of the commands supported by it with minimal dependencies.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
# 2.0 | ||
## 2.6.2 | ||
- merged PR https://github.com/arafato/azurite/pull/170 -> thanks to @julienr | ||
## 2.6.1 | ||
@@ -3,0 +5,0 @@ - fixes [#169](https://github.com/arafato/azurite/issues/169) |
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
397413
7872