security: add security response headers to HTTP API [4/5]#172
Conversation
Add a middleware that sets standard security headers on every response: - X-Content-Type-Options: nosniff (prevents MIME-sniffing attacks) - X-Frame-Options: DENY (prevents clickjacking via iframes) - Cache-Control: no-store (prevents proxy/browser caching of health data) Signed-off-by: Rodrigo Sampaio Vaz <rvaz@nvidia.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughA new security headers middleware is added to set three HTTP response headers ( Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Add a middleware that sets standard security headers on every response:
Description
Checklist
Summary by CodeRabbit
New Features
Tests