Allow all websocket origins in development mode
This commit is contained in:
parent
22d8b8b363
commit
1a7360a573
|
@ -30,6 +30,12 @@ func Run() {
|
||||||
sessions = newSessionStore()
|
sessions = newSessionStore()
|
||||||
channelStore = storage.NewChannelStore()
|
channelStore = storage.NewChannelStore()
|
||||||
|
|
||||||
|
if viper.GetBool("dev") {
|
||||||
|
upgrader.CheckOrigin = func(r *http.Request) bool {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
reconnectIRC()
|
reconnectIRC()
|
||||||
initAuth()
|
initAuth()
|
||||||
initFileServer()
|
initFileServer()
|
||||||
|
|
Loading…
Reference in New Issue