From a7066dd68cacf447dd38449043baf969336b7b1d Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Mon, 12 Dec 2016 19:58:18 -0800 Subject: [PATCH] Remove access control Former-commit-id: bec2c180ee17800de01a6a082d74fd9968e2b55c [formerly bb4d29806f89b26fb1413ec2e68f48f8cb2983f7] [formerly 86c852521132a70a2e83a1e1622b7844bdba20d6 [formerly 14326609903eea7a373bf4ffefe3ebed872a7c28]] Former-commit-id: 3e2642f169712c3c4e8d18ade497bf7c2a107ea9 [formerly 929f8679ffddd6bb609b11bec10f3dd024ea6349] Former-commit-id: 84a0347714c097f0b5ecba0541259be456183678 --- websockets.go | 1 - 1 file changed, 1 deletion(-) diff --git a/websockets.go b/websockets.go index 7828842..46692f8 100644 --- a/websockets.go +++ b/websockets.go @@ -18,7 +18,6 @@ var wsupgrader = websocket.Upgrader{ } func wshandler(w http.ResponseWriter, r *http.Request) { - w.Header().Set("Access-Control-Allow-Origin", "*") conn, err := wsupgrader.Upgrade(w, r, nil) if err != nil { fmt.Println("Failed to set websocket upgrade: %+v", err)