Closed ianberdin closed 7 years ago
Please add this:
var upgrader = websocket.Upgrader{ CheckOrigin: func(r *http.Request) bool { return true }, }
Source
Yes, I can do this:
mrouter.Upgrader.CheckOrigin = func(r *http.Request) bool {return true}
But by default will be better.
This is now the default. Thanks @happierall.
Please add this:
Source