krishnaacharyaa / wanderlust

WanderLust is a MERN travel blog website 🚀 This project is aimed to help people to contribute in open source, upskill in react and master git.
https://wanderlust-beta.vercel.app/
MIT License
174 stars 833 forks source link

[ENHANCEMENT] Limit the payload that user can submit to the web-application #358

Open rushil-b-patel opened 1 month ago

rushil-b-patel commented 1 month ago

Description

The actual payload that user can submit to your app /api should be restricted to avoid unnecessary behaviour. We can limit the body payload using built-in body-parser.

Current Behavior

app.use(express.json());

Proposed Enhancement

limit: '{x}'

Use Case

The website won't slow or crash.

Blockers

No response

Additional Information/ Attachments

No response