Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Page
SetXFrameOptionsHeaderHandler.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Page
;
4
10
class
SetXFrameOptionsHeaderHandler
{
11
19
public
function
__invoke
(\
Elgg
\
Event
$event) {
20
elgg_set_http_header
(
'X-Frame-Options: SAMEORIGIN'
);
21
}
22
}
elgg_set_http_header
elgg_set_http_header(string $header, bool $replace=true)
Set a response HTTP header.
Definition:
elgglib.php:26
Elgg
Definition:
ActionsService.php:3
Elgg\Page\SetXFrameOptionsHeaderHandler
Sets a header.
Definition:
SetXFrameOptionsHeaderHandler.php:10
Elgg\Page\SetXFrameOptionsHeaderHandler\__invoke
__invoke(\Elgg\Event $event)
Sends X-Frame-Options header on page requests.
Definition:
SetXFrameOptionsHeaderHandler.php:19
Elgg\Page
Definition:
AddFaviconLinksHandler.php:3
Elgg\Event
Models an event passed to event handlers.
Definition:
Event.php:11
Generated on Sat Dec 21 2024 00:02:52 for Elgg by
1.8.11