diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-10-23 16:42:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-23 16:42:24 +0200 |
commit | 39338aaa676168b0a53c3a1f6d5363569f303361 (patch) | |
tree | 4c7a779bbd3a1203ce1caa02b98e49f2955cfbb1 /lib/private/Security | |
parent | ae94c5a94cd0d2d9ff6b759fbc201eafdc50ba46 (diff) | |
parent | 579822b6a5639ee608e11ed23760d481a4a78f4b (diff) | |
download | nextcloud-server-39338aaa676168b0a53c3a1f6d5363569f303361.tar.gz nextcloud-server-39338aaa676168b0a53c3a1f6d5363569f303361.zip |
Merge pull request #11914 from nextcloud/csp/report-uri
Add report-uri to CSP
Diffstat (limited to 'lib/private/Security')
-rw-r--r-- | lib/private/Security/CSP/ContentSecurityPolicy.php | 8 |
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; + } + } |