don't check origin in server:
This commit is contained in:
parent
ae073733c7
commit
ba328c6847
@ -24,6 +24,7 @@ func Serve(c *coordinator.Coordinator) {
|
|||||||
|
|
||||||
func serveWs(c *coordinator.Coordinator, w http.ResponseWriter, r *http.Request) {
|
func serveWs(c *coordinator.Coordinator, w http.ResponseWriter, r *http.Request) {
|
||||||
// Upgrade our raw HTTP connection to a websocket based one
|
// Upgrade our raw HTTP connection to a websocket based one
|
||||||
|
upgrader.CheckOrigin = func(r *http.Request) bool { return true }
|
||||||
conn, err := upgrader.Upgrade(w, r, nil)
|
conn, err := upgrader.Upgrade(w, r, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Print("Error during connection upgradation:", err)
|
log.Print("Error during connection upgradation:", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user