mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
17 lines
898 B
Diff
17 lines
898 B
Diff
lib/public/AppFramework/Http/ContentSecurityPolicy.php | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/public/AppFramework/Http/ContentSecurityPolicy.php b/lib/public/AppFramework/Http/ContentSecurityPolicy.php
|
|
index e9ecf00036..8e69c8d2dc 100644
|
|
--- a/lib/public/AppFramework/Http/ContentSecurityPolicy.php
|
|
+++ b/lib/public/AppFramework/Http/ContentSecurityPolicy.php
|
|
@@ -44,7 +44,8 @@ class ContentSecurityPolicy extends EmptyContentSecurityPolicy {
|
|
/** @var bool Whether inline JS snippets are allowed */
|
|
protected $inlineScriptAllowed = false;
|
|
/** @var bool Whether eval in JS scripts is allowed */
|
|
- protected $evalScriptAllowed = false;
|
|
+ // YunoHost patch: allow for eval in JS scripts for YunoHost tile
|
|
+ protected $evalScriptAllowed = true;
|
|
/** @var array Domains from which scripts can get loaded */
|
|
protected $allowedScriptDomains = [
|
|
'\'self\'',
|