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
[Opencode WEB] Unable to add another opencode server due to CSP violation #19949
When I'm trying to add another Opencode server to existing Opencode web UI I'm getting CSP violation error:
Content-Security-Policy: The page’s settings blocked the loading of a resource (connect-src) at https://opencode.spark.lan/global/health because it violates the following directive: “connect-src 'self' data:”
Even if I specify that server URL via --cors flag on the server when I start it up is still does not allow to make requests to that domain.
It would be great to be able to add multiple Opencode servers in single web UI to easily switch between those and monitor those sessions in one place.
Thanks!
Plugins
OpenCode version
1.3.6
Steps to reproduce
Start one or more Opencode server(s) that you will try to connect to
Start local Opencode server and open it in web UI
Click on server status and select manage servers
Try to add those servers that you created in step 1
Screenshot and/or share link
Operating System
WSL Ubuntu 22.04.5 LTS on Win11
Terminal
Windows Terminal
Reacted by Mikael Karon, Adrien, Sebastian Loer, Heliopause0916, 杨卓(Zhuo Yang) and Heathen711
Activity
Bacto commentedon Apr 9, 2026
Hello,
Same here.
The default CSP seems too restrictive:
opencode/packages/opencode/src/server/instance.ts
Line 41 in 46f243f
hadestructhor commentedon May 5, 2026
Same here, in version 1.14.37, don't mind fixing it myself if that's okay
playeriv65 commentedon May 17, 2026
Same problem on v1.14.47
github-actions commentedon Jul 17, 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.