From: Tim Düsterhus Date: Thu, 19 May 2022 08:36:22 +0000 (+0200) Subject: Add `x-frame-options` response header to PSR-7 responses in RequestHandler X-Git-Tag: 6.0.0_Alpha_1~1274 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=403bcea3858e1ad8d33df7d8cc58653e5557a487;p=GitHub%2FWoltLab%2FWCF.git Add `x-frame-options` response header to PSR-7 responses in RequestHandler --- diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index 252ed5c7b6..44a316117e 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -145,6 +145,8 @@ class RequestHandler extends SingletonFactory \implode(', ', $cacheControl) ); + $response->withHeader('x-frame-options', 'SAMEORIGIN'); + $emitter = new SapiEmitter(); $emitter->emit($response); }