Commit 06e80c5
Tighten CSP scheme handling for Google Fonts
Browsers refused to load Noto Sans KR woff2 files served from
fonts.gstatic.com because the CSP listed the host without a scheme:
font-src fonts.gstatic.com *.gstatic.com
Some browsers interpret the unprefixed host as same-scheme as the page
(http when the wiki is behind plain HTTP), but the actual font is
delivered over https — so the request was blocked. Adding https://
explicitly + data: (for inline icon fonts that some KaTeX/highlight
themes embed) makes the policy work the same way regardless of how the
site is served. Also normalized style-src to use scheme-prefixed hosts
for cdn.jsdelivr.net and fonts.googleapis.com for consistency.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4a60f86 commit 06e80c5
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
735 | | - | |
| 735 | + | |
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
| |||
0 commit comments