Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix-#358: Add the limit to the json payload #361

Closed

Conversation

rushil-b-patel
Copy link
Contributor

Summary

Added the limit to the json payload that is being sent by the user.

Description

The actual payload that user can submit to your app /api should be restricted to avoid unnecessary behaviour/ overload of the data. Therefore there should be a limit to the body payload.
app.use(express.json( { limit: '50kb' })); //we can change set the max limit according to the usage.

Issue(s) Addressed

Prerequisites

Copy link

vercel bot commented May 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
wanderlust ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 26, 2024 7:21am
wanderlust-backend ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 26, 2024 7:21am

Copy link

Umm... did someone forget to read the style guide? Fix that PR title and let's try again! @rushil-b-patel
Don't worry, it happens to the best of us! Check out our contributor guidelines for more details.

@rushil-b-patel rushil-b-patel changed the title Fix-#358: Add the limit to the json payload fix-#358: Add the limit to the json payload May 25, 2024
Copy link

Hey @rushil-b-patel! Thanks for sticking to the guidelines! High five! 🙌🏻

@rushil-b-patel
Copy link
Contributor Author

@krishnaacharyaa ...!

@krishnaacharyaa
Copy link
Owner

@rushil-b-patel you break the rules again :)
It was clearly said to get the issue assigned and not to surprise with any PRs :)

@rushil-b-patel
Copy link
Contributor Author

rushil-b-patel commented May 26, 2024

should I have to wait until the issue is being confirmed and then PR...!
@krishnaacharyaa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Limit the payload that user can submit to the web-application
2 participants