mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Adapt the nextcloud 28 content
e231abd9bf/lib/public/AppFramework/Http/ContentSecurityPolicy.php (L42)
This commit is contained in:
parent
aabf29a294
commit
f1402466ce
1 changed files with 3 additions and 3 deletions
|
@ -5,13 +5,13 @@ diff --git a/lib/public/AppFramework/Http/ContentSecurityPolicy.php b/lib/public
|
||||||
index e9ecf00036..8e69c8d2dc 100644
|
index e9ecf00036..8e69c8d2dc 100644
|
||||||
--- a/lib/public/AppFramework/Http/ContentSecurityPolicy.php
|
--- a/lib/public/AppFramework/Http/ContentSecurityPolicy.php
|
||||||
+++ b/lib/public/AppFramework/Http/ContentSecurityPolicy.php
|
+++ b/lib/public/AppFramework/Http/ContentSecurityPolicy.php
|
||||||
@@ -44,7 +44,8 @@ class ContentSecurityPolicy extends EmptyContentSecurityPolicy {
|
@@ -42,7 +42,8 @@ class ContentSecurityPolicy extends EmptyContentSecurityPolicy {
|
||||||
/** @var bool Whether inline JS snippets are allowed */
|
/** @var bool Whether inline JS snippets are allowed */
|
||||||
protected $inlineScriptAllowed = false;
|
protected $inlineScriptAllowed = false;
|
||||||
/** @var bool Whether eval in JS scripts is allowed */
|
/** @var bool Whether eval in JS scripts is allowed */
|
||||||
- protected $evalScriptAllowed = false;
|
- protected $evalScriptAllowed = false;
|
||||||
+ // YunoHost patch: allow for eval in JS scripts for YunoHost tile
|
+ // YunoHost patch: allow for eval in JS scripts for YunoHost tile
|
||||||
+ protected $evalScriptAllowed = true;
|
+ protected $evalScriptAllowed = true;
|
||||||
|
/** @var bool Whether WebAssembly compilation is allowed */
|
||||||
|
protected ?bool $evalWasmAllowed = false;
|
||||||
/** @var bool Whether strict-dynamic should be set */
|
/** @var bool Whether strict-dynamic should be set */
|
||||||
protected $strictDynamicAllowed = null;
|
|
||||||
/** @var array Domains from which scripts can get loaded */
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue