allow all origins
This commit is contained in:
parent
7488c5ee35
commit
7ab71eca51
6
ws.go
6
ws.go
@ -14,7 +14,11 @@ import (
|
||||
|
||||
var MinetestMagic = []byte{0x4f, 0x45, 0x74, 0x03}
|
||||
|
||||
var upgrader = websocket.Upgrader{}
|
||||
var upgrader = websocket.Upgrader{
|
||||
CheckOrigin: func(r *http.Request) bool {
|
||||
return true
|
||||
},
|
||||
}
|
||||
|
||||
func HandleProxy(w http.ResponseWriter, r *http.Request) {
|
||||
conn, err := upgrader.Upgrade(w, r, nil)
|
||||
|
Loading…
x
Reference in New Issue
Block a user