mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Issue #3101 Added option define('X-FRAME-SAMEORIGIN', false); for e107_config.php
This commit is contained in:
@@ -2793,8 +2793,10 @@ class e_http_header
|
|||||||
$this->setHeader('Vary: Accept');
|
$this->setHeader('Vary: Accept');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(defset('X-FRAME-SAMEORIGIN') !== false)
|
||||||
|
{
|
||||||
$this->setHeader('X-Frame-Options: SAMEORIGIN');
|
$this->setHeader('X-Frame-Options: SAMEORIGIN');
|
||||||
|
}
|
||||||
|
|
||||||
// should come after the Etag header
|
// should come after the Etag header
|
||||||
if ($canCache && isset($_SERVER['HTTP_IF_NONE_MATCH']))
|
if ($canCache && isset($_SERVER['HTTP_IF_NONE_MATCH']))
|
||||||
|
Reference in New Issue
Block a user