← Back to release summary

WebAssembly Content Security Policy

Category
WebAssembly
Type
New or changed feature
Status
Enabled by default (Chrome 97)
Intent stage
Evaluate readiness to ship

Summary

Enhancements to Content Security Policy to improve interoperability with WebAssembly.

Motivation

Allows web developers to be more fine grained in their policy wrt executing WebAssembly. Currently, if there is a non-empty CSP policy for a page, the unsafe-eval policy must be enabled. This allows a developer to use wasm-unsafe-eval that only allows webassembly execution and has no impact on javaScript execution.

Standards & signals

Docs: https://github.com/WebAssembly/content-security-policy/blob/master/proposals/CSP.md

Explainers: https://github.com/WebAssembly/content-security-policy/blob/master/proposals/CSP.md

View on chromestatus.com