mirror of
https://github.com/vrana/adminer.git
synced 2025-08-18 20:31:19 +02:00
Easier sending of default headers (customization)
This commit is contained in:
@@ -35,11 +35,10 @@ class Adminer {
|
||||
}
|
||||
|
||||
/** Headers to send before HTML output
|
||||
* @return null
|
||||
* @return bool true to send security headers
|
||||
*/
|
||||
function 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
|
||||
return true;
|
||||
}
|
||||
|
||||
/** Print HTML code inside <head>
|
||||
|
Reference in New Issue
Block a user