fix: CSP allows Google Fonts for Material Symbols icons
Build & Deploy Tippspiel / build (push) Successful in 50s
Build & Deploy Tippspiel / build (push) Successful in 50s
This commit is contained in:
@@ -36,10 +36,10 @@ app.use(
|
|||||||
directives: {
|
directives: {
|
||||||
defaultSrc: ["'self'"],
|
defaultSrc: ["'self'"],
|
||||||
scriptSrc: ["'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'],
|
imgSrc: ["'self'", 'data:', 'https://crests.football-data.org'],
|
||||||
frameAncestors: ['https://app.staffbase.com', 'https://*.staffbase.com'],
|
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,
|
upgradeInsecureRequests: process.env.PLUGIN_BASE_URL?.startsWith('https') ? [] : null,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user