1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Fix check origin

This commit is contained in:
Zack Scholl 2016-12-12 19:57:33 -08:00
parent 8c406982f3
commit 483d698f3a

View File

@ -12,6 +12,9 @@ import (
var wsupgrader = websocket.Upgrader{ var wsupgrader = websocket.Upgrader{
ReadBufferSize: 1024, ReadBufferSize: 1024,
WriteBufferSize: 1024, WriteBufferSize: 1024,
CheckOrigin: func(r *http.Request) bool {
return true
},
} }
func wshandler(w http.ResponseWriter, r *http.Request) { func wshandler(w http.ResponseWriter, r *http.Request) {