feat(security): update Content Security Policy to allow connections to GitHub API and related domains

This commit is contained in:
2026-01-04 14:59:36 -06:00
parent bbf61d88a5
commit fd846e3ed2

View File

@@ -350,7 +350,7 @@ app.whenReady().then(async () => {
"style-src 'self' 'unsafe-inline'",
"img-src 'self' data: blob: https://*.tile.openstreetmap.org https://tile.openstreetmap.org",
"font-src 'self' data:",
"connect-src 'self' http://localhost:9337 https://localhost:9337 ws://localhost:* wss://localhost:* blob: https://*.tile.openstreetmap.org https://tile.openstreetmap.org https://nominatim.openstreetmap.org",
"connect-src 'self' http://localhost:9337 https://localhost:9337 ws://localhost:* wss://localhost:* blob: https://*.tile.openstreetmap.org https://tile.openstreetmap.org https://nominatim.openstreetmap.org https://api.github.com https://objects.githubusercontent.com https://github.com",
"media-src 'self' blob:",
"worker-src 'self' blob:",
"frame-src 'self'",