diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-09-18 14:25:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-18 14:25:44 +0200 |
commit | 53057f2bd0fd1e7239ebd5cb6f82eb2766f642ee (patch) | |
tree | 11726c07a58e3ead653e6551b2448ad689a39c95 /lib/private/Security/CSP/ContentSecurityPolicy.php | |
parent | 8b1eaba417553410871ebec64f78a96cefaa6f6d (diff) | |
parent | eb51c46549d1fe01fe8fdbefd2303bf597c88b54 (diff) | |
download | nextcloud-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.php | 14 |
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; + } + } |