trust all ws origins (not a security issue)

This commit is contained in:
Thomas Rudin 2019-03-29 19:49:19 +01:00
parent e101b5d6d0
commit 031902a994

View File

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