Skip to content

Commit

Permalink
Merge pull request #557 from samyak-aditya/sam_backend
Browse files Browse the repository at this point in the history
Fixed: helmet security support
  • Loading branch information
Luson045 authored Oct 27, 2024
2 parents fd33dd0 + 59164d8 commit 55d5834
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 55d5834

Please sign in to comment.