diff --git a/server/web/ws.go b/server/web/ws.go index c5d17a6..fe49e45 100644 --- a/server/web/ws.go +++ b/server/web/ws.go @@ -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{}) {