nextcloud/lib/public/AppFramework/Http
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 +02:00
..
Attribute Add IgnoreOpenAPI attribute 2023-07-10 14:25:22 +02:00
Events Update php licenses 2021-06-04 22:02:41 +02:00
Template Add template types to responses 2023-06-30 09:33:29 +02:00
ContentSecurityPolicy.php Allow "wasm-unsafe-eval" in CSP 2023-08-10 02:38:41 +02:00
DataDisplayResponse.php Add template types to responses 2023-06-30 09:33:29 +02:00
DataDownloadResponse.php Add template types to responses 2023-06-30 09:33:29 +02:00
DataResponse.php Add template types to responses 2023-06-30 09:33:29 +02:00
DownloadResponse.php Add template types to responses 2023-06-30 09:33:29 +02:00
EmptyContentSecurityPolicy.php Allow "wasm-unsafe-eval" in CSP 2023-08-10 02:38:41 +02:00
EmptyFeaturePolicy.php composer run cs:fix 2023-01-20 11:45:08 +01:00
FeaturePolicy.php Update php licenses 2021-06-04 22:02:41 +02:00
FileDisplayResponse.php Add template types to responses 2023-06-30 09:33:29 +02:00
ICallbackResponse.php composer run cs:fix 2023-01-20 11:45:08 +01:00
IOutput.php composer run cs:fix 2023-01-20 11:45:08 +01:00
JSONResponse.php Add template types to responses 2023-06-30 09:33:29 +02:00
NotFoundResponse.php Add template types to responses 2023-06-30 09:33:29 +02:00
RedirectResponse.php Add template types to responses 2023-06-30 09:33:29 +02:00
RedirectToDefaultAppResponse.php Add template types to responses 2023-06-30 09:33:29 +02:00
Response.php chore: Replace \OC::$server->query with \OCP\Server::get in /lib 2023-07-06 15:21:22 +02:00
StandaloneTemplateResponse.php Add template types to responses 2023-06-30 09:33:29 +02:00
StreamResponse.php Add template types to responses 2023-06-30 09:33:29 +02:00
StrictContentSecurityPolicy.php Allow "wasm-unsafe-eval" in CSP 2023-08-10 02:38:41 +02:00
StrictEvalContentSecurityPolicy.php fix(docs): Fix language and copy-paste class name in docs of CSP 2023-05-30 13:39:33 +02:00
StrictInlineContentSecurityPolicy.php fix(docs): Fix language and copy-paste class name in docs of CSP 2023-05-30 13:39:33 +02:00
TemplateResponse.php fix!: Remove legacy event dispatching Symfony's GenericEvent from AdditionalScripts 2023-07-27 09:57:52 +02:00
TextPlainResponse.php Add template types to responses 2023-06-30 09:33:29 +02:00
TooManyRequestsResponse.php Add template types to responses 2023-06-30 09:33:29 +02:00
ZipResponse.php Add template types to responses 2023-06-30 09:33:29 +02:00