fix: CSP allows Google Fonts for Material Symbols icons
This commit is contained in:
@@ -36,10 +36,10 @@ app.use(
|
||||
directives: {
|
||||
defaultSrc: ["'self'"],
|
||||
scriptSrc: ["'self'"],
|
||||
styleSrc: ["'self'", "'unsafe-inline'"], // für inline styles im Frontend
|
||||
styleSrc: ["'self'", "'unsafe-inline'", 'https://fonts.googleapis.com'],
|
||||
fontSrc: ["'self'", 'https://fonts.gstatic.com', 'https://cdn.jsdelivr.net'],
|
||||
imgSrc: ["'self'", 'data:', 'https://crests.football-data.org'],
|
||||
frameAncestors: ['https://app.staffbase.com', 'https://*.staffbase.com'],
|
||||
// upgrade-insecure-requests nur wenn HTTPS verfügbar ist, sonst werden JS-Assets geblockt
|
||||
upgradeInsecureRequests: process.env.PLUGIN_BASE_URL?.startsWith('https') ? [] : null,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user