<?phpnamespace App\EventListener;use Symfony\Component\HttpKernel\Event\ResponseEvent;use Symfony\Component\EventDispatcher\Attribute\AsEventListener;#[AsEventListener(event: 'kernel.response', method: 'onKernelResponse')]class FrameOptionsListener{ public function onKernelResponse(ResponseEvent $responseEvent): void { $response = $responseEvent->getResponse(); $response->headers->set( key: 'X-Frame-Options', values: 'DENY' ); }}