Skip to content

Commit 6adf182

Browse files
fix-krishnaacharyaa#358: set the limit of the json-payload
1 parent 19138dc commit 6adf182

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: backend/app.js

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

0 commit comments

Comments
 (0)