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

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

Open
rushil-b-patel opened this issue May 24, 2024 · 0 comments
Labels
enhancement Enhancement to the existing code

Comments

@rushil-b-patel
Copy link
Contributor

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

@rushil-b-patel rushil-b-patel added the enhancement Enhancement to the existing code label May 24, 2024
rushil-b-patel added a commit to rushil-b-patel/wanderlust that referenced this issue May 25, 2024
@rushil-b-patel rushil-b-patel changed the title [ENHANCEMENT] Limit the payload that user can submit to the application [ENHANCEMENT] Limit the payload that user can submit to the web-application May 25, 2024
rushil-b-patel added a commit to rushil-b-patel/wanderlust that referenced this issue May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to the existing code
Projects
None yet
1 participant