summaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework/Http/ContentSecurityPolicy.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/AppFramework/Http/ContentSecurityPolicy.php')
-rw-r--r--lib/public/AppFramework/Http/ContentSecurityPolicy.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/public/AppFramework/Http/ContentSecurityPolicy.php b/lib/public/AppFramework/Http/ContentSecurityPolicy.php
index 68aa4b5ddb4..c12fbc7561e 100644
--- a/lib/public/AppFramework/Http/ContentSecurityPolicy.php
+++ b/lib/public/AppFramework/Http/ContentSecurityPolicy.php
@@ -86,7 +86,9 @@ class ContentSecurityPolicy extends EmptyContentSecurityPolicy {
protected $allowedChildSrcDomains = [];
/** @var array Domains which can embed this Nextcloud instance */
- protected $allowedFrameAncestors = [];
+ protected $allowedFrameAncestors = [
+ '\'self\'',
+ ];
/** @var array Domains from which web-workers can be loaded */
protected $allowedWorkerSrcDomains = [];