Add Helmet to protect against common web vulnerabilities
Change-Id: I04329eb8a41c06b74a25ae47281f9b3bde7fc391
diff --git a/server/src/app.ts b/server/src/app.ts
index 85e6b10..53c8c23 100644
--- a/server/src/app.ts
+++ b/server/src/app.ts
@@ -16,6 +16,7 @@
* <https://www.gnu.org/licenses/>.
*/
import express, { json, NextFunction, Request, Response } from 'express';
+import helmet from 'helmet';
import { HttpStatusCode } from 'jami-web-common';
import log from 'loglevel';
import { Service } from 'typedi';
@@ -28,6 +29,8 @@
async build() {
const app = express();
+ // Setup middleware
+ app.use(helmet());
app.use(json());
// Setup routing