fix: Lucide Icons lokal ausliefern statt CDN

- lucide.min.js v0.469.0 lokal gecacht (kein unpkg-Request mehr)
- Source-Map-Referenz aus Bundle entfernt (behebt NetworkError in DevTools)
- unpkg.com aus CSP entfernt (nicht mehr benötigt)
- preconnect zu unpkg.com aus index.html entfernt
- lucide.min.js zum SW-App-Shell-Cache hinzugefügt

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ulsklyc
2026-03-25 09:42:05 +01:00
parent b08ba42b89
commit 03585662fb
4 changed files with 16 additions and 7 deletions
+1 -3
View File
@@ -34,10 +34,8 @@ app.use(helmet({
defaultSrc: ["'self'"],
scriptSrc: [
"'self'",
// Alpine.js CDN
// Alpine.js CDN (optional, falls verwendet)
'https://cdn.jsdelivr.net',
// Lucide Icons CDN
'https://unpkg.com',
],
styleSrc: ["'self'", "'unsafe-inline'"],
imgSrc: ["'self'", 'data:', 'https://openweathermap.org'],