summaryrefslogtreecommitdiff
path: root/app/Middleware
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-25 21:28:33 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-25 21:28:33 -0400
commit872dc79dbd8b04424520e32675a6e0dcb6ed44bc (patch)
tree46b08d77e39c09fd415e9c943931db0a03de7c99 /app/Middleware
parent74a84a28e34f3c1c38631fb80cc74ab589a44298 (diff)
Do not execute controller if the response is already sent
Diffstat (limited to 'app/Middleware')
-rw-r--r--app/Middleware/BootstrapMiddleware.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Middleware/BootstrapMiddleware.php b/app/Middleware/BootstrapMiddleware.php
index c9de1de9..727f600c 100644
--- a/app/Middleware/BootstrapMiddleware.php
+++ b/app/Middleware/BootstrapMiddleware.php
@@ -33,7 +33,7 @@ class BootstrapMiddleware extends BaseMiddleware
$this->response->withContentSecurityPolicy($this->container['cspRules']);
$this->response->withSecurityHeaders();
- if (ENABLE_XFRAME && $this->router->getAction() !== 'readonly') {
+ if (ENABLE_XFRAME) {
$this->response->withXframe();
}