Allow websocket connections from all origins
This commit is contained in:
parent
7aae7685c5
commit
cb4b5e4f6f
2 changed files with 5 additions and 0 deletions
|
@ -23,6 +23,9 @@ var (
|
|||
upgrader = websocket.Upgrader{
|
||||
ReadBufferSize: 1024,
|
||||
WriteBufferSize: 1024,
|
||||
CheckOrigin: func(r *http.Request) bool {
|
||||
return true
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue