chore(security): add HSTS, nosniff, Referrer-Policy and Permissions-Policy headers - #1465
chore(security): add HSTS, nosniff, Referrer-Policy and Permissions-Policy headers#1465rajanpanth wants to merge 1 commit into
Conversation
…olicy headers Adds standard hardening response headers alongside the existing X-Frame-Options and CSP on the global /:path* matcher: - Strict-Transport-Security (HSTS, 2y + preload) - X-Content-Type-Options: nosniff - Referrer-Policy: strict-origin-when-cross-origin - Permissions-Policy: camera/microphone/geolocation denied
|
@rajanpanth is attempting to deploy a commit to the Superteam Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughThe Next.js configuration adds four security response headers to the default ChangesSecurity response headers
Estimated code review effort: 2 (Simple) | ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Adds standard hardening response headers alongside the existing
X-Frame-Optionsand CSP on the global/:path*matcher:Strict-Transport-Security: max-age=63072000; includeSubDomains; preloadX-Content-Type-Options: nosniffReferrer-Policy: strict-origin-when-cross-originPermissions-Policy: camera=(), microphone=(), geolocation=()Purely additive; no behavioural change to any route.
pnpm check-typesandpnpm lintpass.Summary by CodeRabbit