avoid a clickjacking attack reported on huntr.dev by @ranjit-git

This commit is contained in:
David Goodwin committed 2021-08-09 09:28:23 +01:00
1 parent feb5cbc7f3
commit 64e98fcf97
1 file changed
+3
+3
View File
@@ -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');
}
}