mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Remove access control
This commit is contained in:
parent
483d698f3a
commit
1432660990
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user