trust all ws origins (not a security issue)
This commit is contained in:
parent
e101b5d6d0
commit
031902a994
@ -30,6 +30,9 @@ func NewWS(ctx *app.App) *WS {
|
||||
var upgrader = websocket.Upgrader{
|
||||
ReadBufferSize: 1024,
|
||||
WriteBufferSize: 1024,
|
||||
CheckOrigin: func(r *http.Request) bool {
|
||||
return true
|
||||
},
|
||||
}
|
||||
|
||||
func (t *WS) OnEvent(eventtype string, o interface{}) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user