diff --git a/cmd/server/server.go b/cmd/server/server.go index d405638..94bf2fc 100644 --- a/cmd/server/server.go +++ b/cmd/server/server.go @@ -24,6 +24,7 @@ func Serve(c *coordinator.Coordinator) { func serveWs(c *coordinator.Coordinator, w http.ResponseWriter, r *http.Request) { // Upgrade our raw HTTP connection to a websocket based one + upgrader.CheckOrigin = func(r *http.Request) bool { return true } conn, err := upgrader.Upgrade(w, r, nil) if err != nil { log.Print("Error during connection upgradation:", err)