@reldens/server-utils 0.44.0 → 0.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -115,6 +115,7 @@ class AppServerFactory
115
115
  this.http2CdnCorsAllowAll = false;
116
116
  this.http2CdnMimeTypes = {};
117
117
  this.http2CdnCacheConfig = {};
118
+ this.http2CdnSecurityHeaders = {};
118
119
  this.http2CdnServer = false;
119
120
  this.reverseProxyEnabled = false;
120
121
  this.reverseProxyRules = [];
@@ -203,6 +204,9 @@ class AppServerFactory
203
204
  }
204
205
  this.http2CdnServer.corsOrigins = this.http2CdnCorsOrigins;
205
206
  this.http2CdnServer.corsAllowAll = this.http2CdnCorsAllowAll;
207
+ if(this.http2CdnSecurityHeaders && 0 < Object.keys(this.http2CdnSecurityHeaders).length){
208
+ this.http2CdnServer.securityHeaders = this.http2CdnSecurityHeaders;
209
+ }
206
210
  this.http2CdnServer.onError = this.onError;
207
211
  this.http2CdnServer.onRequestSuccess = this.onRequestSuccess;
208
212
  this.http2CdnServer.onRequestError = this.onRequestError;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@reldens/server-utils",
3
3
  "scope": "@reldens",
4
- "version": "0.44.0",
4
+ "version": "0.45.0",
5
5
  "description": "Reldens - Server Utils",
6
6
  "author": "Damian A. Pastorini",
7
7
  "license": "MIT",