summaryrefslogtreecommitdiffstats
path: root/lib/private/Security
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2017-06-19 13:55:46 +0200
committerThomas Citharel <tcit@tcit.fr>2017-09-15 15:23:10 +0200
commitecf347bd1aaaeb2cd11b8ffbc60da099c68f1d83 (patch)
treec18d1ad5792a45f415a38604ef1c3adb3456f901 /lib/private/Security
parent8500e114575d7e02ffda8070980cc77ba147e60f (diff)
downloadnextcloud-server-ecf347bd1aaaeb2cd11b8ffbc60da099c68f1d83.tar.gz
nextcloud-server-ecf347bd1aaaeb2cd11b8ffbc60da099c68f1d83.zip
Add CSP frame-ancestors support
Didn't set the @since annotation yet. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'lib/private/Security')
-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;
+ }
+
}