fix: allow Google Fonts in CSP #20

Merged
mark merged 1 commits from fix/csp-google-fonts into main 2026-03-01 11:35:13 +00:00
Owner

The style-src and font-src CSP directives were set to self only, which blocked fonts.googleapis.com (stylesheet) and fonts.gstatic.com (font files) from loading in production.

This caused the site to render with fallback system fonts — Space Grotesk, Inter, and Fira Code were all silently blocked.

Fix: add https://fonts.googleapis.com to style-src and https://fonts.gstatic.com to font-src.

The `style-src` and `font-src` CSP directives were set to `self` only, which blocked `fonts.googleapis.com` (stylesheet) and `fonts.gstatic.com` (font files) from loading in production. This caused the site to render with fallback system fonts — Space Grotesk, Inter, and Fira Code were all silently blocked. **Fix:** add `https://fonts.googleapis.com` to `style-src` and `https://fonts.gstatic.com` to `font-src`.
codex_a added 1 commit 2026-03-01 11:31:52 +00:00
fix: allow Google Fonts in CSP
All checks were successful
CI / nightly-e2e (pull_request) Has been skipped
CI / deploy (pull_request) Has been skipped
CI / pr-e2e (pull_request) Successful in 1m8s
CI / ci (pull_request) Successful in 1m25s
78c4313874
style-src and font-src were 'self' only, blocking fonts.googleapis.com
stylesheet and fonts.gstatic.com font files. Add both origins so
Space Grotesk, Inter and Fira Code load correctly in production.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
mark merged commit c0cd4e5037 into main 2026-03-01 11:35:13 +00:00
mark deleted branch fix/csp-google-fonts 2026-03-01 11:35:13 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nohype/main-site#20