diff options
Diffstat (limited to 'appinfo')
-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); } |