mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: UI/UX for regions (#7283)
* chore: Allow regular users to query for all workspaces * FE to add workspace proxy options to account settings * WorkspaceProxy context syncs with coderd on region responses --------- Co-authored-by: Dean Sheather <dean@deansheather.com>
This commit is contained in:
co-authored by
Dean Sheather
parent
c00f5e499a
commit
4a9d1c16c7
@@ -618,6 +618,12 @@ func (s *Server) workspaceAgentPTY(rw http.ResponseWriter, r *http.Request) {
|
||||
|
||||
conn, err := websocket.Accept(rw, r, &websocket.AcceptOptions{
|
||||
CompressionMode: websocket.CompressionDisabled,
|
||||
// Always allow websockets from the primary dashboard URL.
|
||||
// Terminals are opened there and connect to the proxy.
|
||||
OriginPatterns: []string{
|
||||
s.DashboardURL.Host,
|
||||
s.AccessURL.Host,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{
|
||||
|
||||
Reference in New Issue
Block a user