From 04d61dd9a61c6c132a532e548b109b35132fc3c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ken-H=C3=A5vard=20Lieng?= Date: Tue, 26 Jan 2016 20:14:19 +0100 Subject: [PATCH] Only allow websocket connections from the same origin --- server/server.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/server/server.go b/server/server.go index 3e330908..d0d843b2 100644 --- a/server/server.go +++ b/server/server.go @@ -23,9 +23,6 @@ var ( upgrader = websocket.Upgrader{ ReadBufferSize: 1024, WriteBufferSize: 1024, - CheckOrigin: func(r *http.Request) bool { - return true - }, } )