[117] Material-Symbols lokal gebündelt (npm material-symbols) statt Google Fonts; CSP ohne fonts.googleapis/gstatic, NOTICE ergänzt

This commit is contained in:
Claude committed 2026-11-03 17:49:41 +00:00
1 parent 6e6714d5d9
commit 8af6f73552
8 files changed
+18 -15

No files matched your search

+2 -5
View File
@@ -15,9 +15,6 @@ const NET_HOSTS = [
];
const https = NET_HOSTS.map((h) => `https://${h}`);
// Icon-Font (index.html): Stylesheet von fonts.googleapis.com, Schrift von fonts.gstatic.com.
const GOOGLE_FONTS_CSS = "https://fonts.googleapis.com";
const GOOGLE_FONTS_FILES = "https://fonts.gstatic.com";
const DIRECTIVES = {
"default-src": ["'self'"],
@@ -26,8 +23,8 @@ const DIRECTIVES = {
// Import-Worker (DXF/IFC/Mesh/Punktwolke) und pdf.js-Worker: Modul-URLs aus dem eigenen Bundle.
"worker-src": ["'self'", "blob:"],
// React setzt viele Inline-`style`-Attribute -> 'unsafe-inline' (nur Stile, keine Skripte).
"style-src": ["'self'", "'unsafe-inline'", GOOGLE_FONTS_CSS],
"font-src": ["'self'", "data:", GOOGLE_FONTS_FILES],
"style-src": ["'self'", "'unsafe-inline'"],
"font-src": ["'self'", "data:"],
"img-src": ["'self'", "data:", "blob:", ...https],
"media-src": ["'self'", "blob:"],
"connect-src": [