summaryrefslogtreecommitdiffstats
path: root/lib/private/Security
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-10-16 14:04:22 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-10-21 13:38:32 +0200
commit579822b6a5639ee608e11ed23760d481a4a78f4b (patch)
tree59129f958c51b19bfd2fea5d50107cf1f37feda8 /lib/private/Security
parentf544c9fec9e24f7216aafdada680378044ddaf61 (diff)
downloadnextcloud-server-579822b6a5639ee608e11ed23760d481a4a78f4b.tar.gz
nextcloud-server-579822b6a5639ee608e11ed23760d481a4a78f4b.zip
Add report-uri to CSP
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Security')
-rw-r--r--lib/private/Security/CSP/ContentSecurityPolicy.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/Security/CSP/ContentSecurityPolicy.php b/lib/private/Security/CSP/ContentSecurityPolicy.php
index cae247f9f4f..8fd4df05c31 100644
--- a/lib/private/Security/CSP/ContentSecurityPolicy.php
+++ b/lib/private/Security/CSP/ContentSecurityPolicy.php
@@ -223,4 +223,12 @@ class ContentSecurityPolicy extends \OCP\AppFramework\Http\ContentSecurityPolicy
$this->allowedWorkerSrcDomains = $allowedWorkerSrcDomains;
}
+ public function getReportTo(): array {
+ return $this->reportTo;
+ }
+
+ public function setReportTo(array $reportTo) {
+ $this->reportTo = $reportTo;
+ }
+
}