summaryrefslogtreecommitdiffstats
path: root/lib/private/Security/CSP
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-07-30 23:13:46 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-07-31 15:16:10 +0200
commitf94ee725073d22302740800b252f9e70675ae46f (patch)
tree9dc5a1ee47eab19ecf670eafc8cbca02ffd67faf /lib/private/Security/CSP
parentf1066fd769cd1e07d1aa67fb620d390d67de2bd9 (diff)
downloadnextcloud-server-f94ee725073d22302740800b252f9e70675ae46f.tar.gz
nextcloud-server-f94ee725073d22302740800b252f9e70675ae46f.zip
Add form-action CSP element
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Security/CSP')
-rw-r--r--lib/private/Security/CSP/ContentSecurityPolicy.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/Security/CSP/ContentSecurityPolicy.php b/lib/private/Security/CSP/ContentSecurityPolicy.php
index a066c986f15..9d1d043a165 100644
--- a/lib/private/Security/CSP/ContentSecurityPolicy.php
+++ b/lib/private/Security/CSP/ContentSecurityPolicy.php
@@ -225,6 +225,15 @@ class ContentSecurityPolicy extends \OCP\AppFramework\Http\ContentSecurityPolicy
$this->allowedWorkerSrcDomains = $allowedWorkerSrcDomains;
}
+ public function getAllowedFormActionDomains(): array {
+ return $this->allowedFormActionDomains;
+ }
+
+ public function setAllowedFormActionDomains(array $allowedFormActionDomains): void {
+ $this->allowedFormActionDomains = $allowedFormActionDomains;
+ }
+
+
public function getReportTo(): array {
return $this->reportTo;
}