Commit dead830
committed
fix(deploy): allow WebContainer CDN import and enable cross-origin isolation
The Cloudflare Pages CSP blocked the dynamic import of
@webcontainer/api from cdn.jsdelivr.net in wc-bridge.js, silently
breaking terminal creation in the deployed web build. Whitelist the
CDN in script-src and add COEP so WebContainer boots with full
require-corp isolation instead of falling back to degraded mode.1 parent 4a4dcb2 commit dead830
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| |||
0 commit comments