-
Notifications
You must be signed in to change notification settings - Fork 59
Add security headers to next.config.js #162
Copy link
Copy link
Open
Labels
GSSOC26GirlScript Summer of Code 2026GirlScript Summer of Code 2026NSoC'26backendBackend / API / DB relatedBackend / API / DB relatedenhancementNew feature or requestNew feature or requestlevel:intermediateIntermediate level difficultyIntermediate level difficultytype:securitySecurity fix or improvementSecurity fix or improvement
Metadata
Metadata
Assignees
Labels
GSSOC26GirlScript Summer of Code 2026GirlScript Summer of Code 2026NSoC'26backendBackend / API / DB relatedBackend / API / DB relatedenhancementNew feature or requestNew feature or requestlevel:intermediateIntermediate level difficultyIntermediate level difficultytype:securitySecurity fix or improvementSecurity fix or improvement
Type
Fields
Give feedbackNo fields configured for issues without a type.
Problem
The app has no HTTP security headers. No X-Frame-Options, no content type sniffing protection, nothing. Basic hardening for any production app.
Fix
Add headers in next.config.js:
CSP can be a follow-up since it needs more tuning - start with these safe ones.