-
Notifications
You must be signed in to change notification settings - Fork 63
Enhancement: Implement Helmet and HPP for security (#56) #99
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
base: master
Are you sure you want to change the base?
Enhancement: Implement Helmet and HPP for security (#56) #99
Conversation
✅ Deploy Preview for paisable canceled.
|
Hi @Avdhesh-Varshney @archa8, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have left a comment on server.js
. Kindly make the respective changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@100NikhilBro I think for CSP and Origin, You should use valid values instead disabling them. First test so that FE doesn't break.
@Avdhesh-Varshney Got it! Yeah, you’re right — I’ll test it properly to ensure the FE doesn’t break. I’ll check everything in the next 2–3 days and update the PR accordingly. 👍 |
Security Improvement Suggestion
Summary
This PR enhances backend security by adding
helmet
andhpp
middlewares.Implemented Changes
middleware/security.js
)Why
Improves API resilience and prevents common web vulnerabilities as discussed in Issue #56.