You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Map server does not work with clients that correctly enforce CSP #374
Try to use the map server on an app that correctly enforces the spec's CSP
You get an error, "Evaluating a string as JavaScript violates the following Content Security Policy directive because 'unsafe-eval' is not an allowed source of script: script-src 'self' 'unsafe-inline' https://.openstreetmap.org https://cesium.com https://.cesium.com"."
To Reproduce
See above
Expected behavior
It should work
Logs
If applicable, add logs to help explain your problem.
Fixed in v1.7.0 — App now sets z.config({jitless: true}) by default so Views run under strict CSP without unsafe-eval (#618). Opt out with new App(..., {allowUnsafeEval: true}) if you need the faster JIT path.
Activity
spec: align CSP construction with claude.ai practice (fixes #374)
matipojo commentedon Mar 2, 2026
Seems the issue is with Zod v4 (colinhacks/zod#4461)
If possible, try configuring Zod before importing the MCP SDK:
feat(app): default Zod to jitless; add allowUnsafeEval opt-out
feat(app): default Zod to jitless; add allowUnsafeEval opt-out (#618)
ochafik commentedon Apr 21, 2026
Fixed in v1.7.0 —
Appnow setsz.config({jitless: true})by default so Views run under strict CSP withoutunsafe-eval(#618). Opt out withnew App(..., {allowUnsafeEval: true})if you need the faster JIT path.hydrosquall commentedon May 6, 2026
Related CSP unsafe-eval error coming from a different ext-apps dependency
#652