Skip to content

Commit

Permalink
Set X-Frame-Options to prevent possible clickjacking via iframe layer
Browse files Browse the repository at this point in the history
  • Loading branch information
aheinze committed Feb 11, 2023
1 parent abbcef3 commit 8450bdf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -3,6 +3,8 @@
## WIP

- Fix batch state update (when using MongoLite) #75
- Fix min/max settings for number fields #76
- Set X-Frame-Options to prevent possible clickjacking via iframe layer

## 2.3.8 (2023-02-04)

Expand Down
3 changes: 3 additions & 0 deletions modules/App/admin.php
Expand Up @@ -140,6 +140,9 @@
*/
$this->on('after', function() {

// prevent possible clickjacking via iframe layer
$this->response->headers['X-Frame-Options'] = 'SAMEORIGIN';

// handle error pages
switch ($this->response->status) {

Expand Down

0 comments on commit 8450bdf

Please sign in to comment.