diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-10-07 19:35:02 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-10-07 19:35:02 -0400 |
commit | f9e4915d756ef4cc929cf0f31fd373f9e527ab7b (patch) | |
tree | 072c6d4f2dfab94636e06d683e363a43566a988d /app/Controller | |
parent | f63984af1a1098f9d3925b5d5f1d0b98fdcf05e2 (diff) |
Allow public board iframe inclusion (see #309)
Diffstat (limited to 'app/Controller')
-rw-r--r-- | app/Controller/Base.php | 6 |
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(); |