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:
parent
8c406982f3
commit
483d698f3a
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user