summaryrefslogtreecommitdiffstats
path: root/lib/private/Security
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-03-09 14:25:36 +0100
committerJulius Härtl <jus@bitgrid.net>2022-03-09 15:10:27 +0100
commitbd03dd37bec6e94bf1bb8f7329d370c5a68ecb6b (patch)
tree54b371050de801f253fde867706529bc7bee6da9 /lib/private/Security
parent0825c3ea34675b12bf14dc00354e0ab1c77ecf11 (diff)
downloadnextcloud-server-bd03dd37bec6e94bf1bb8f7329d370c5a68ecb6b.tar.gz
nextcloud-server-bd03dd37bec6e94bf1bb8f7329d370c5a68ecb6b.zip
Allow to set a strict-dynamic CSP through the API
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Security')
-rw-r--r--lib/private/Security/CSP/ContentSecurityPolicy.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/Security/CSP/ContentSecurityPolicy.php b/lib/private/Security/CSP/ContentSecurityPolicy.php
index 78517f639a7..8a72934d4c9 100644
--- a/lib/private/Security/CSP/ContentSecurityPolicy.php
+++ b/lib/private/Security/CSP/ContentSecurityPolicy.php
@@ -244,4 +244,11 @@ class ContentSecurityPolicy extends \OCP\AppFramework\Http\ContentSecurityPolicy
public function setReportTo(array $reportTo) {
$this->reportTo = $reportTo;
}
+
+ /**
+ * @param boolean $strictDynamicAllowed
+ */
+ public function setStrictDynamicAllowed(bool $strictDynamicAllowed) {
+ $this->strictDynamicAllowed = $strictDynamicAllowed;
+ }
}