nextcloud-server/lib/private/Security/CSP
Daniel Calviño Sánchez 41f2d912d2 Allow "wasm-unsafe-eval" in CSP
If a page has a Content Security Policy header and the `script-src` (or
`default-src`) directive does not contain neither `wasm-unsafe-eval` nor
`unsafe-eval` loading and executing WebAssembly is blocked in the page
(although it is still possible to load and execute WebAssembly in a
worker thread).

Although the Nextcloud classes to manage the CSP already supported
allowing `unsafe-eval` this affects not only WebAssembly, but also the
`eval` operation in JavaScript.

To make possible to allow WebAssembly execution without allowing
JavaScript `eval` this commit adds support for allowing
`wasm-unsafe-eval`.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-08-10 02:38:41 +07:00
..
ContentSecurityPolicy.php Allow "wasm-unsafe-eval" in CSP 2023-08-10 02:38:41 +07:00
ContentSecurityPolicyManager.php Add CSP policy merge priority for booleans 2022-04-01 13:56:34 +07:00
ContentSecurityPolicyNonceManager.php Fix detection of firefox in ContentSecurityPolicyNonceManager 2022-06-29 17:05:48 +07:00