From 89e9c78eff0708f7617eeceede166f96accc4c04 Mon Sep 17 00:00:00 2001 From: Thanura Rukshan <115996771+thanurarukshan@users.noreply.github.com> Date: Tue, 3 Oct 2023 02:14:18 +0530 Subject: [PATCH] Update server.js --- server.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server.js b/server.js index 25f2fd9e3..080f27c7d 100644 --- a/server.js +++ b/server.js @@ -7,6 +7,10 @@ const app = express(); const port = process.env.PORT || 8383; const ip = process.env.IP || null; // Use specified IP to bind to otherwise, bind to default for the API + +// set security HTTP headers +app.use(helmet()); + // Enable gzip compression app.use(compression());