1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Remove access control

Former-commit-id: bec2c180ee17800de01a6a082d74fd9968e2b55c [formerly bb4d29806f89b26fb1413ec2e68f48f8cb2983f7] [formerly 86c852521132a70a2e83a1e1622b7844bdba20d6 [formerly 1432660990]]
Former-commit-id: 3e2642f169712c3c4e8d18ade497bf7c2a107ea9 [formerly 929f8679ffddd6bb609b11bec10f3dd024ea6349]
Former-commit-id: 84a0347714c097f0b5ecba0541259be456183678
This commit is contained in:
Zack Scholl 2016-12-12 19:58:18 -08:00
parent 7d5af5dd2e
commit a7066dd68c

View File

@ -18,7 +18,6 @@ var wsupgrader = websocket.Upgrader{
} }
func wshandler(w http.ResponseWriter, r *http.Request) { func wshandler(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Access-Control-Allow-Origin", "*")
conn, err := wsupgrader.Upgrade(w, r, nil) conn, err := wsupgrader.Upgrade(w, r, nil)
if err != nil { if err != nil {
fmt.Println("Failed to set websocket upgrade: %+v", err) fmt.Println("Failed to set websocket upgrade: %+v", err)