Skip to content

Commit 303f55b

Browse files
committed
feat: add helmet middleware for security enhancements
1 parent b269828 commit 303f55b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

API/server.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ import { checkIsValid, newSecretKey } from "./totp.js"
33
import { hashPassword, checkPassword } from "./hashingPasswd.js"
44

55
import express from 'express';
6+
const helmet = require('helmet');
67
import cors from 'cors';
78
import { use } from "react";
89

910
const app = express();
1011
const PORT = 3000;
1112

1213
app.use(cors());
14+
app.use(helmet());
1315
app.use(express.json());
1416

1517
const pendingLogin = {};

0 commit comments

Comments
 (0)