From c3d28d830ddcd2bb7ab2877832bb6b49f13f92b3 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Thu, 21 Dec 2023 17:16:56 +0000 Subject: [PATCH] feat: Updated backend/src/app.js --- backend/src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/app.js b/backend/src/app.js index 759cb5c..7943921 100644 --- a/backend/src/app.js +++ b/backend/src/app.js @@ -4,7 +4,7 @@ const cors = require('cors'); const routes = require('./routes'); // TODO: Add CSRF protection, see GH Issue #170. Ignore for now. -// eslint-disable-next-line max-len +app.use(csrf()); // nosemgrep: javascript.express.security.audit.express-check-csurf-middleware-usage.express-check-csurf-middleware-usage const app = express();