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
The web terminal (Ghostty) is completely broken when accessing OpenCode web UI via non-localhost address. The Ghostty WASM module fails to load due to CSP restrictions.
Environment
OpenCode version: v1.14.39 (latest as of 2026-05-06)
Access method: HTTP Basic Auth, via IP address (http://10.10.22.22:43218)
Browser: Chrome on Linux
Error
Connecting to 'data:application/wasm;base64,...' violates the following Content Security Policy directive: "connect-src *". Note that '*' matches only URLs with network schemes ('http', 'https', 'ws', 'wss'), or URLs whose scheme matches self's scheme. The scheme 'data:' must be added explicitly.
Summary
The web terminal (Ghostty) is completely broken when accessing OpenCode web UI via non-localhost address. The Ghostty WASM module fails to load due to CSP restrictions.
Environment
http://10.10.22.22:43218)Error
Current CSP
Server returns:
The issue is
ghostty-web-*.jsloads the WASM module via adata:URL, butconnect-src *does not allowdata:scheme.Related
Suggested Fix
Either:
data:toconnect-srcin CSP header:connect-src * data:This makes the web terminal completely unusable for remote/headless server deployments.