summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-10-07 19:35:02 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-10-07 19:35:02 -0400
commitf9e4915d756ef4cc929cf0f31fd373f9e527ab7b (patch)
tree072c6d4f2dfab94636e06d683e363a43566a988d /app
parentf63984af1a1098f9d3925b5d5f1d0b98fdcf05e2 (diff)
Allow public board iframe inclusion (see #309)
Diffstat (limited to 'app')
-rw-r--r--app/Controller/Base.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Controller/Base.php b/app/Controller/Base.php
index f24ea8ff..aabb1775 100644
--- a/app/Controller/Base.php
+++ b/app/Controller/Base.php
@@ -116,7 +116,11 @@ abstract class Base
$this->response->csp(array('style-src' => "'self' 'unsafe-inline'"));
$this->response->nosniff();
$this->response->xss();
- $this->response->xframe();
+
+ // Allow the public board iframe inclusion
+ if ($action !== 'readonly') {
+ $this->response->xframe();
+ }
if (ENABLE_HSTS) {
$this->response->hsts();