From ba328c6847314281c832a9a44bc0d277fcc2ef16 Mon Sep 17 00:00:00 2001 From: Steve Ryan Date: Fri, 24 Sep 2021 10:57:08 -0400 Subject: [PATCH] don't check origin in server: --- cmd/server/server.go | 1 + 1 file changed, 1 insertion(+) 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)