You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** @var bool Whether WebAssembly compilation is allowed */
34
28
protected ?bool$evalWasmAllowed = null;
35
29
/** @var array Domains from which scripts can get loaded */
@@ -54,8 +48,6 @@ class EmptyContentSecurityPolicy {
54
48
protected$allowedFrameDomains = null;
55
49
/** @var array Domains from which fonts can be loaded */
56
50
protected$allowedFontDomains = null;
57
-
/** @var array Domains from which web-workers and nested browsing content can load elements */
58
-
protected$allowedChildSrcDomains = null;
59
51
/** @var array Domains which can embed this Nextcloud instance */
60
52
protected$allowedFrameAncestors = null;
61
53
/** @var array Domains from which web-workers can be loaded */
@@ -101,18 +93,6 @@ public function useJsNonce($nonce) {
101
93
return$this;
102
94
}
103
95
104
-
/**
105
-
* Whether eval in JavaScript is allowed or forbidden
106
-
* @param bool $state
107
-
* @return $this
108
-
* @since 8.1.0
109
-
* @deprecated 17.0.0 Eval should not be used anymore. Please update your scripts. This function will stop functioning in a future version of Nextcloud.
110
-
*/
111
-
publicfunctionallowEvalScript($state = true) {
112
-
$this->evalScriptAllowed = $state;
113
-
return$this;
114
-
}
115
-
116
96
/**
117
97
* Whether WebAssembly compilation is allowed or forbidden
118
98
* @param bool $state
@@ -323,31 +303,6 @@ public function disallowFrameDomain($domain) {
323
303
return$this;
324
304
}
325
305
326
-
/**
327
-
* Domains from which web-workers and nested browsing content can load elements
328
-
* @param string $domain Domain to whitelist. Any passed value needs to be properly sanitized.
329
-
* @return $this
330
-
* @since 8.1.0
331
-
* @deprecated 15.0.0 use addAllowedWorkerSrcDomains or addAllowedFrameDomain
332
-
*/
333
-
publicfunctionaddAllowedChildSrcDomain($domain) {
334
-
$this->allowedChildSrcDomains[] = $domain;
335
-
return$this;
336
-
}
337
-
338
-
/**
339
-
* Remove the specified allowed child src domain from the allowed domains.
340
-
*
341
-
* @param string $domain
342
-
* @return $this
343
-
* @since 8.1.0
344
-
* @deprecated 15.0.0 use the WorkerSrcDomains or FrameDomain
0 commit comments