Elgg  Version master
SetXFrameOptionsHeaderHandler.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Page;
4 
11 
19  public function __invoke(\Elgg\Event $event) {
20  elgg_set_http_header('X-Frame-Options: SAMEORIGIN');
21  }
22 }
elgg_set_http_header(string $header, bool $replace=true)
Set a response HTTP header.
Definition: elgglib.php:26
__invoke(\Elgg\Event $event)
Sends X-Frame-Options header on page requests.
Models an event passed to event handlers.
Definition: Event.php:11