Stop other sites from framing the pages.
This commit is contained in:
@@ -5,6 +5,10 @@ require_once(__DIR__ . '/captcha.lib.php');
|
||||
|
||||
$is_admin = FALSE;
|
||||
|
||||
// No other site can show the pages in a frame, where a hidden page can take an editor's click
|
||||
header('X-Frame-Options: DENY');
|
||||
header("Content-Security-Policy: frame-ancestors 'none'");
|
||||
|
||||
if (isset($_SERVER['HTTPS'])) {
|
||||
session_cache_limiter('private');
|
||||
session_set_cookie_params(array('lifetime' => 0, 'path' => '/', 'domain' => cookie_domain(), 'secure' => TRUE, 'httponly' => TRUE, 'samesite' => 'Lax'));
|
||||
|
||||
Reference in New Issue
Block a user