Skip to content

Commit 2d4cd46

Browse files
author
Guy Bedford
committed
add CSP policy note
1 parent 9f6136d commit 2d4cd46

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

proposals/esm-integration/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,14 @@ Some impacts of reading the imports up-front:
141141

142142
See the FAQ for more explanation of the rationale for this design decision, and what features it enables which would be difficult or impossible otherwise.
143143

144+
### Content Security Policy
145+
146+
CSP policies are verified at the time of Wasm compilation through the `HostEnsureCanCompileWasmBytes` abstract
147+
operation.
148+
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.
151+
144152
## FAQ
145153

146154
### How would this work, in some concrete examples?

0 commit comments

Comments
 (0)