feat: enhance security audit and CSP configuration for admin interface
This commit is contained in:
@@ -40,9 +40,11 @@ final class AdminCspSubscriber implements EventSubscriberInterface
|
||||
. "script-src 'self'; "
|
||||
. "worker-src 'self' blob:; " // ALTCHA proof-of-work solver runs in blob: Web Workers
|
||||
. "style-src 'self' 'unsafe-inline'; " // Tailwind / CKEditor inline styles
|
||||
. "img-src 'self' data: blob:; "
|
||||
// OpenStreetMap tiles + unpkg Leaflet marker icons render the clinic-location map
|
||||
. "img-src 'self' data: blob: https://*.tile.openstreetmap.org https://unpkg.com; "
|
||||
. "font-src 'self' data:; "
|
||||
. "connect-src 'self'; "
|
||||
// nominatim geocoding + OSM tile fetches for the clinic-location map
|
||||
. "connect-src 'self' https://nominatim.openstreetmap.org https://*.tile.openstreetmap.org; "
|
||||
. "frame-ancestors 'none'; "
|
||||
. "base-uri 'self'; "
|
||||
. "object-src 'none'"
|
||||
|
||||
Reference in New Issue
Block a user