content-security-policy.com icon indicating copy to clipboard operation
content-security-policy.com copied to clipboard

Add wasm-eval and document that problem around that

Open rugk opened this issue 4 years ago • 0 comments

Problem

Chrome required unsafe-eval for loading of WebAssembly code. See https://github.com/WebAssembly/content-security-policy/issues/7 and all the linked issues.

Solution

They have now thankfully added a new wasm-eval in https://github.com/w3c/webappsec-csp/pull/293. As it says there, the spec is wrong, reportedly, Chrome/ium 97 accepts wasm-eval while the spec still calls it wasm-unsafe-eval.

More

After all, the issue is so big they draft a whole new spec about that, apparently: https://w3c.github.io/webappsec-csp/

rugk avatar Mar 26 '22 18:03 rugk