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