Allow websocket connections from all origins
This commit is contained in:
parent
7aae7685c5
commit
cb4b5e4f6f
@ -23,6 +23,9 @@ var (
|
||||
upgrader = websocket.Upgrader{
|
||||
ReadBufferSize: 1024,
|
||||
WriteBufferSize: 1024,
|
||||
CheckOrigin: func(r *http.Request) bool {
|
||||
return true
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
|
@ -32,6 +32,8 @@ func init() {
|
||||
func Initialize() {
|
||||
var err error
|
||||
|
||||
log.Println("Storing data at", appDir)
|
||||
|
||||
os.Mkdir(appDir, 0777)
|
||||
os.Mkdir(path.Join(appDir, "logs"), 0777)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user