add more security headers
This commit is contained in:
1 parent
d58fdeee8b
commit
c5e55e8bc0
1 file changed
+3
@@ -3261,6 +3261,9 @@ function send_headers(){
|
||||
header('Expires: 0');
|
||||
header('Referrer-Policy: no-referrer');
|
||||
header('Content-Security-Policy: referrer never');
|
||||
header('X-Content-Type-Options: nosniff');
|
||||
header('X-Frame-Options: sameorigin');
|
||||
header('X-XSS-Protection: 1; mode=block');
|
||||
if($_SERVER['REQUEST_METHOD']==='HEAD'){
|
||||
exit; // headers sent, no further processing needed
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user