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
Embedded web UI CSP blocks the inline theme preload script #21088
Open the web UI through a remote/Tailscale URL instead of localhost
Sign in
The page hangs and the browser console shows:
Executing inline script violates the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval'"...
Cause
packages/opencode/src/server/instance.ts already hashes the inline oc-theme-preload-script for proxied HTML, but the embedded UI path still returns the default CSP without that hash.
Expected
Embedded HTML should use the same hashed CSP logic as the proxied HTML path so the inline theme preload script can run.
Activity
github-actions commentedon Apr 5, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is distinct from these, feel free to keep it open and clarify the differences.
mxl commentedon May 6, 2026
May be fixed by #25937
github-actions commentedon Jul 8, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.