Skip to content

Commit

Permalink
Fixed X-Frame-Options to be DENY in all admin pages to prevent a …
Browse files Browse the repository at this point in the history
…clickjacking attack
  • Loading branch information
mahagr committed Sep 1, 2021
1 parent 2f9b0a1 commit 853abfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -3,6 +3,7 @@

3. [](#bugfix)
* Fixed regression `Argument 4 passed to Grav\Plugin\Form\TwigExtension::prepareFormField() must be of the type array` [#2177](https://github.com/getgrav/grav-plugin-admin/issues/2177)
* Fixed `X-Frame-Options` to be `DENY` in all admin pages to prevent a clickjacking attack

# v1.10.19
## 08/31/2021
Expand Down
2 changes: 1 addition & 1 deletion classes/plugin/Router.php
Expand Up @@ -67,6 +67,6 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
$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');
}
}

0 comments on commit 853abfb

Please sign in to comment.