From 1bb1e3bfd4de9780baee0602183cae2e920e1c10 Mon Sep 17 00:00:00 2001 From: Smile Rex Date: Wed, 21 Jan 2026 13:10:15 +0300 Subject: [PATCH] fix --- controllers/ws.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/controllers/ws.go b/controllers/ws.go index 6cb97af..06508de 100644 --- a/controllers/ws.go +++ b/controllers/ws.go @@ -8,15 +8,6 @@ import ( ) func (h *Hub) ws(w http.ResponseWriter, r *http.Request) { - w.Header().Set("Access-Control-Allow-Origin", "*") - w.Header().Set("Access-Control-Allow-Methods", "GET, OPTIONS") - w.Header().Set("Access-Control-Allow-Headers", "Content-Type, Authorization") - - if r.Method == "OPTIONS" { - w.WriteHeader(http.StatusOK) - return - } - upgrader := websocket.Upgrader{ CheckOrigin: func(r *http.Request) bool { return true }, }