diff --git a/server/server.go b/server/server.go index d0d843b2..9720394c 100644 --- a/server/server.go +++ b/server/server.go @@ -30,6 +30,12 @@ func Run() { sessions = newSessionStore() channelStore = storage.NewChannelStore() + if viper.GetBool("dev") { + upgrader.CheckOrigin = func(r *http.Request) bool { + return true + } + } + reconnectIRC() initAuth() initFileServer()