mirror of
https://github.com/coder/coder.git
synced 2025-07-18 14:17:22 +00: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:
@ -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