Skip to content

Commit

Permalink
helmet security support
Browse files Browse the repository at this point in the history
  • Loading branch information
samyak-aditya committed Oct 26, 2024
1 parent c615055 commit 59164d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const express = require("express");
const User = require("./models/user");
const helmet = require('helmet');

const bodyParser = require("body-parser");
const session = require("express-session");
Expand Down Expand Up @@ -41,6 +42,7 @@ corsConfig(app);
app.use(bodyParser.json());
app.use(express.static("public"));
app.use(express.json());
app.use(helmet());

// Session Middleware (Required for Passport)
app.use(
Expand Down
1 change: 1 addition & 0 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"express-async-handler": "^1.2.0",
"express-rate-limit": "^7.4.1",
"express-session": "^1.18.1",
"helmet": "^8.0.0",
"jsonwebtoken": "^9.0.2",
"mongodb": "^6.8.0",
"mongoose": "^8.5.4",
Expand Down

0 comments on commit 59164d8

Please sign in to comment.