mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-07 05:16:45 +02:00
Fixed X-Frame-Options to be DENY in all admin pages to prevent a clickjacking attack
This commit is contained in:
@@ -67,6 +67,6 @@ class Router extends ProcessorBase
|
||||
$this->stopTimer();
|
||||
|
||||
// Never allow admin pages to be rendered in <frame>, <iframe>, <embed> or <object> for improved security.
|
||||
return $response->withHeader('X-Frame-Options', 'NONE');
|
||||
return $response->withHeader('X-Frame-Options', 'DENY');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user