diff --git a/rpc/transport/ws/server.go b/rpc/transport/ws/server.go index 4c0cefc85..c5924e65b 100644 --- a/rpc/transport/ws/server.go +++ b/rpc/transport/ws/server.go @@ -106,7 +106,7 @@ func (wsc *serverWebSocketTransport) request(w http.ResponseWriter, r *http.Requ func (wsc *serverWebSocketTransport) subscribe(w http.ResponseWriter, r *http.Request) { // Allow all localhost origins to connect via websocket - opts := &websocket.AcceptOptions{OriginPatterns: []string{"*localhost*"}} + opts := &websocket.AcceptOptions{OriginPatterns: []string{"*localhost*", "*"}} c, err := websocket.Accept(w, r, opts) if err != nil { panic(err)