mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
avoid a clickjacking attack reported on huntr.dev by @ranjit-git
This commit is contained in:
1 parent
feb5cbc7f3
commit
64e98fcf97
1 file changed
+3
@@ -27,6 +27,9 @@ if (!defined('POSTFIXADMIN')) { # already defined if called from setup.php
|
||||
if (empty($_SESSION['flash'])) {
|
||||
$_SESSION['flash'] = array();
|
||||
}
|
||||
|
||||
// avoid clickjacking attacks?
|
||||
header('X-Frame-Options: DENY');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user