From 60d272bb50565e64582c3a6a98bc6fe313904b9c Mon Sep 17 00:00:00 2001 From: Robbie Trencheny Date: Mon, 10 Apr 2017 14:32:50 -0700 Subject: [PATCH] Allow any Origin by default. Closes #23 --- melody.go | 1 + 1 file changed, 1 insertion(+) diff --git a/melody.go b/melody.go index 0822dee..be2149f 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()