Skip to content

fix(security): add Content-Security-Policy header#60

Merged
nocoo merged 2 commits intomainfrom
fix/add-csp-header
Apr 21, 2026
Merged

fix(security): add Content-Security-Policy header#60
nocoo merged 2 commits intomainfrom
fix/add-csp-header

Conversation

@nocoo
Copy link
Copy Markdown
Owner

@nocoo nocoo commented Apr 21, 2026

Closes #55\n\nAdds CSP header with appropriate directives for a Next.js blog (self + unsafe-inline/eval for Next.js, https: for images/API).\n\nSeverity: MEDIUM

@nocoo nocoo force-pushed the fix/add-csp-header branch from dc371ec to 9a39e3a Compare April 21, 2026 06:10
nocoo added 2 commits April 21, 2026 17:43
Adds baseline CSP with unsafe-inline/unsafe-eval for Next.js compatibility.
Includes font-src https: for CDN fonts, connect-src wss: for HMR,
base-uri and form-action restrictions.
@nocoo nocoo force-pushed the fix/add-csp-header branch from 9a39e3a to de5f7e7 Compare April 21, 2026 09:43
@nocoo nocoo merged commit a7b5579 into main Apr 21, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🥝 choko] fix(security): add Content-Security-Policy header

1 participant