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 #360

Closed

Conversation

rushil-b-patel
Copy link
Contributor

@rushil-b-patel rushil-b-patel commented May 25, 2024

Summary

Added the limit to the json payload that is sent.

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 25, 2024 8:04am
wanderlust-backend ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 25, 2024 8:04am

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.

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 rushil-b-patel deleted the enhance/json-payload branch May 26, 2024 07:12
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
1 participant