diff --git a/websockets.go b/websockets.go index 0e31651..7828842 100644 --- a/websockets.go +++ b/websockets.go @@ -12,6 +12,9 @@ import ( var wsupgrader = websocket.Upgrader{ ReadBufferSize: 1024, WriteBufferSize: 1024, + CheckOrigin: func(r *http.Request) bool { + return true + }, } func wshandler(w http.ResponseWriter, r *http.Request) {