Skip to content

Commit cdc6a16

Browse files
committed
Allow "wasm-unsafe-eval" in CSP
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
1 parent 5cd1a44 commit cdc6a16

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_27.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ Nextcloud 27 no longer loads classes in the deprecated :ref:`PSR-0 naming standa
3838
Added APIs
3939
^^^^^^^^^^
4040

41+
* ``\OCP\AppFramework\Http\EmptyContentSecurityPolicy::allowEvalWasm(bool)``: sets ``wasm-unsafe-eval`` in ``script-src`` of the Content Security Policy `to allow compilation and execution of WebAssembly on the page <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src#unsafe_webassembly_execution>`_
42+
43+
* ``wasm-unsafe-eval`` is `supported by most browsers <https://caniuse.com/mdn-http_headers_content-security-policy_script-src_wasm-unsafe-eval>`_
44+
* WebAssembly compilation and execution in worker threads is not affected by this directive (browsers allow compilation and execution of WebAssembly in worker threads by default)
45+
4146
* tbd
4247

4348
Changed APIs

0 commit comments

Comments
 (0)