Skip to content

Commit 820c1dd

Browse files
fix-krishnaacharyaa#358: set json response limit
1 parent 19138dc commit 820c1dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: backend/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ app.use(cors({
1515
origin: FRONTEND_URL,
1616
credentials: true
1717
}));
18-
app.use(express.json());
18+
app.use(express.json( { limit: '50kb' }));
1919
app.use(express.urlencoded());
2020
app.use(cookieParser());
2121
app.use(compression());

0 commit comments

Comments
 (0)