*/ class CSPListener implements IEventListener { public function __construct( ) { } public function handle(Event $event): void { if (!($event instanceof AddContentSecurityPolicyEvent)) { return; } $csp = new ContentSecurityPolicy(); $csp->addAllowedImageDomain('https://*.tile.openstreetmap.org'); $event->addPolicy($csp); } }