@abejarano/ts-express-server 1.5.1 → 1.5.2

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.
@@ -17,6 +17,7 @@ class BootstrapServer {
17
17
  this.app.use(body_parser_1.default.urlencoded({ extended: true }));
18
18
  this.app.use((0, cookie_parser_1.default)());
19
19
  this.app.set("port", port);
20
+ this.app.set("trust proxy", 1);
20
21
  }
21
22
  removeModule(moduleName) {
22
23
  this.modules = this.modules.filter((m) => m.getModuleName() !== moduleName);
@@ -12,17 +12,10 @@ class SecurityModule extends abstract_1.BaseServerModule {
12
12
  this.name = "Security";
13
13
  this.priority = -80;
14
14
  this.helmetOptions = helmetOptions || {
15
- contentSecurityPolicy: {
16
- directives: {
17
- defaultSrc: ["'self'"],
18
- styleSrc: ["'self'", "'unsafe-inline'"],
19
- scriptSrc: ["'self'"],
20
- imgSrc: ["'self'", "data:", "https:"],
21
- },
22
- },
23
- crossOriginEmbedderPolicy: true,
24
- crossOriginOpenerPolicy: true,
25
- crossOriginResourcePolicy: { policy: "cross-origin" },
15
+ contentSecurityPolicy: false,
16
+ crossOriginEmbedderPolicy: false,
17
+ crossOriginOpenerPolicy: false,
18
+ crossOriginResourcePolicy: false,
26
19
  dnsPrefetchControl: true,
27
20
  frameguard: { action: "deny" },
28
21
  hidePoweredBy: true,
@@ -31,7 +24,6 @@ class SecurityModule extends abstract_1.BaseServerModule {
31
24
  originAgentCluster: true,
32
25
  permittedCrossDomainPolicies: false,
33
26
  referrerPolicy: { policy: "no-referrer" },
34
- xssFilter: true,
35
27
  };
36
28
  }
37
29
  getModuleName() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@abejarano/ts-express-server",
3
3
  "author": "angel bejarano / angel.bejarano@jaspesoft.com",
4
- "version": "1.5.1",
4
+ "version": "1.5.2",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [