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

Add nosniff header

This commit is contained in:
Jakub Vrana
2018-01-09 11:04:02 +01:00
parent d07b7e3773
commit 415253b1b1
3 changed files with 3 additions and 0 deletions

View File

@@ -90,6 +90,7 @@ function page_headers() {
if ($adminer->headers()) {
header("X-Frame-Options: deny"); // ClickJacking protection in IE8, Safari 4, Chrome 2, Firefox 3.6.9
header("X-XSS-Protection: 0"); // prevents introducing XSS in IE8 by removing safe parts of the page
header("X-Content-Type-Options: nosniff");
header("Referrer-Policy: origin-when-cross-origin");
}
}