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 fea438080efb3ec93c3c3dd0b9511c6fa10b50b0 [formerly483d698f3a
]]] Former-commit-id: a2c0d11edc96c26595566c80991a7dfd4e67bfc8 [formerly 3f8e10a9d26fad1a127e59ca94bcc3fb35aad5a0] Former-commit-id: 8d19a2d69896d55a31d57563c9a323feb34f70ab Former-commit-id:7d5af5dd2e
This commit is contained in:
parent
4276e4bec3
commit
18d002abf4
@ -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