don't check origin in server:

This commit is contained in:
Steve Ryan 2021-09-24 10:57:08 -04:00
parent ae073733c7
commit ba328c6847

View File

@ -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)