Commit 95c7568
committed
fix: disable Zod JIT in App so Views run under strict CSP
Zod v4's object parser compiles a fast path with new Function(), which
violates script-src CSP without unsafe-eval. Hosts that enforce the
spec's default CSP (e.g. VS Code) cannot load any View that parses an
incoming message.
Set z.config({ jitless: true }) at the top of the App entry so the
interpreter path is used instead. Applies to every View bundle, not
just map-server.
Addresses #374. Relevant to #199.1 parent 01d826a commit 95c7568
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
| |||
0 commit comments