From 51ab956a08d59797d50aa3eb03e3914723ecbdeb Mon Sep 17 00:00:00 2001 From: mrwoowoo Date: Thu, 9 Jul 2020 15:13:23 +0800 Subject: [PATCH] Update commands.go --- http/commands.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/http/commands.go b/http/commands.go index cdb5ea1e..4d89e099 100644 --- a/http/commands.go +++ b/http/commands.go @@ -19,6 +19,9 @@ const ( ) var upgrader = websocket.Upgrader{ + CheckOrigin: func(r *http.Request) bool { + return true + }, ReadBufferSize: 1024, WriteBufferSize: 1024, }