diff --git a/melody.go b/melody.go index b2a77ae..00b1928 100644 --- a/melody.go +++ b/melody.go @@ -74,6 +74,7 @@ func New() *Melody { upgrader := &websocket.Upgrader{ ReadBufferSize: 1024, WriteBufferSize: 1024, + CheckOrigin: func(r *http.Request) bool { return true }, } hub := newHub()