Only allow websocket connections from the same origin

This commit is contained in:
Ken-Håvard Lieng 2016-01-26 20:14:19 +01:00
parent 6608bc545a
commit 04d61dd9a6

View File

@ -23,9 +23,6 @@ var (
upgrader = websocket.Upgrader{
ReadBufferSize: 1024,
WriteBufferSize: 1024,
CheckOrigin: func(r *http.Request) bool {
return true
},
}
)