From 6643e743d7c06a4244fce0588ad796bfb278abd0 Mon Sep 17 00:00:00 2001 From: mrwoowoo Date: Tue, 14 Jul 2020 14:18:08 +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..0bdbccda 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, }