summaryrefslogtreecommitdiffstats
path: root/lib/private/Security/CSP/ContentSecurityPolicy.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-09-18 14:25:44 +0200
committerGitHub <noreply@github.com>2017-09-18 14:25:44 +0200
commit53057f2bd0fd1e7239ebd5cb6f82eb2766f642ee (patch)
tree11726c07a58e3ead653e6551b2448ad689a39c95 /lib/private/Security/CSP/ContentSecurityPolicy.php
parent8b1eaba417553410871ebec64f78a96cefaa6f6d (diff)
parenteb51c46549d1fe01fe8fdbefd2303bf597c88b54 (diff)
downloadnextcloud-server-53057f2bd0fd1e7239ebd5cb6f82eb2766f642ee.tar.gz
nextcloud-server-53057f2bd0fd1e7239ebd5cb6f82eb2766f642ee.zip
Merge pull request #5462 from nextcloud/add-frameancestor-support
Add CSP frame-ancestors support
Diffstat (limited to 'lib/private/Security/CSP/ContentSecurityPolicy.php')
-rw-r--r--lib/private/Security/CSP/ContentSecurityPolicy.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/private/Security/CSP/ContentSecurityPolicy.php b/lib/private/Security/CSP/ContentSecurityPolicy.php
index 47314609498..a6892505520 100644
--- a/lib/private/Security/CSP/ContentSecurityPolicy.php
+++ b/lib/private/Security/CSP/ContentSecurityPolicy.php
@@ -197,4 +197,18 @@ class ContentSecurityPolicy extends \OCP\AppFramework\Http\ContentSecurityPolicy
$this->allowedChildSrcDomains = $allowedChildSrcDomains;
}
+ /**
+ * @return array
+ */
+ public function getAllowedFrameAncestors() {
+ return $this->allowedFrameAncestors;
+ }
+
+ /**
+ * @param array $allowedFrameAncestors
+ */
+ public function setAllowedFrameAncestors($allowedFrameAncestors) {
+ $this->allowedFrameAncestors = $allowedFrameAncestors;
+ }
+
}