From 820c1dd15410dc8a3c9e17ff442f7208c5e28438 Mon Sep 17 00:00:00 2001 From: Rushil Date: Sat, 25 May 2024 13:22:30 +0530 Subject: [PATCH] fix-#358: set json response limit --- backend/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app.js b/backend/app.js index ec7b1b8a..0d3575be 100644 --- a/backend/app.js +++ b/backend/app.js @@ -15,7 +15,7 @@ app.use(cors({ origin: FRONTEND_URL, credentials: true })); -app.use(express.json()); +app.use(express.json( { limit: '50kb' })); app.use(express.urlencoded()); app.use(cookieParser()); app.use(compression());