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

Fix check origin

Former-commit-id: cceac08c2cb9abce1811910b1477880d10fc5f5f [formerly b221fde742c33a95464a32cd41e3b71449d0c065] [formerly eb4538558611ffa502486fd47cc71ddae32eae7a [formerly 483d698f3a]]
Former-commit-id: a2c0d11edc96c26595566c80991a7dfd4e67bfc8 [formerly 3f8e10a9d26fad1a127e59ca94bcc3fb35aad5a0]
Former-commit-id: 8d19a2d69896d55a31d57563c9a323feb34f70ab
This commit is contained in:
Zack Scholl 2016-12-12 19:57:33 -08:00
parent bbb33c1f72
commit 7d5af5dd2e

View File

@ -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) {