Bug fixing

This commit is contained in:
Alexei Anoshenko 2024-06-13 09:37:48 +03:00
parent a471df2471
commit 27ebaf1bfe
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ var upgrader = websocket.Upgrader{
} }
func createSocketBridge(w http.ResponseWriter, req *http.Request) *wsBridge { func createSocketBridge(w http.ResponseWriter, req *http.Request) *wsBridge {
upgrader.CheckOrigin = func(r *http.Request) bool { return true }
conn, err := upgrader.Upgrade(w, req, nil) conn, err := upgrader.Upgrade(w, req, nil)
if err != nil { if err != nil {
ErrorLog(err.Error()) ErrorLog(err.Error())