1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Always send security headers in customization

This commit is contained in:
Jakub Vrana
2018-01-09 13:48:51 +01:00
parent 415253b1b1
commit 552d2a6be4
5 changed files with 9 additions and 13 deletions

View File

@@ -20,11 +20,9 @@ class AdminerFrames {
function headers() {
if ($this->sameOrigin) {
header("X-Frame-Options: SameOrigin");
} elseif (function_exists('header_remove')) {
header_remove("X-Frame-Options");
}
header("X-XSS-Protection: 0");
header("X-Content-Type-Options: nosniff");
header("Referrer-Policy: origin-when-cross-origin");
return false;
}
}