From 483d698f3a494c2259b9a464ff1501f5cc455c65 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Mon, 12 Dec 2016 19:57:33 -0800 Subject: [PATCH] Fix check origin --- websockets.go | 3 +++ 1 file changed, 3 insertions(+) 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) {