Skip to content

Commit 05ace87

Browse files
author
Guy Bedford
committed
rewording
1 parent 2d4cd46 commit 05ace87

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

proposals/esm-integration/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,11 @@ See the FAQ for more explanation of the rationale for this design decision, and
144144
### Content Security Policy
145145

146146
CSP policies are verified at the time of Wasm compilation through the `HostEnsureCanCompileWasmBytes` abstract
147-
operation.
147+
operation defined by the [Web Content Security Policy proposal](https://github.com/WebAssembly/content-security-policy).
148148

149-
Wasm modules loaded through the ES Module system should follow the existing `script-src` policy on the page when
150-
compiled through the module system hooks. Further refinements to the Wasm CSP policy may then be added in future.
149+
Wasm modules imported through the ES Module system should be verified for compilation by CSP against the `script-src`
150+
directive, both for static and dynamic imports. This allows Wasm and JS to be equally supported in the ESM
151+
integration under CSP policies. Further refinements to the Wasm CSP policy may be added in future.
151152

152153
## FAQ
153154

0 commit comments

Comments
 (0)