diff --git a/src/main.py b/src/main.py index 0876040..626a475 100644 --- a/src/main.py +++ b/src/main.py @@ -298,11 +298,11 @@ class SecurityHeadersMiddleware(BaseHTTPMiddleware): response = await call_next(request) response.headers["Content-Security-Policy"] = ( "default-src 'self'; " - "script-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; " + "script-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net https://unpkg.com; " "style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.jsdelivr.net; " "font-src 'self' https://fonts.gstatic.com; " - "img-src 'self' data: https://tile.openstreetmap.de; " - "connect-src 'self' wss: ws:; " + "img-src 'self' data: https://tile.openstreetmap.de https://server.arcgisonline.com; " + "connect-src 'self' wss: ws: https://earthquake.usgs.gov https://api.gdeltproject.org; " "frame-ancestors 'none'" ) response.headers["Permissions-Policy"] = (