diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-08-07 11:15:03 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-08-07 23:43:43 +0300 |
commit | 92945b8dae8d7b6a324c10e6d0038cd0175daf63 (patch) | |
tree | 5b94b98d00fb0196549827542e99bffd26a721c7 | |
parent | 3daa8d177d54f78d25e82017fb7e8328dfdcddb1 (diff) |
Add allowedFormAction csp
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | appinfo/app.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/appinfo/app.php b/appinfo/app.php index 3f43ffbe..338ff5b1 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -68,6 +68,9 @@ if ($wopiUrl !== '') { $manager = \OC::$server->getContentSecurityPolicyManager(); $policy = new ContentSecurityPolicy(); $policy->addAllowedFrameDomain($wopiUrl); + if (method_exists($policy, 'addAllowedFormActionDomain')) { + $policy->addAllowedFormActionDomain($wopiUrl); + } $manager->addDefaultPolicy($policy); } |