From 9f4cab679c0fb00fa8aa7b18632f6fad41a4fe4a Mon Sep 17 00:00:00 2001 From: Marco Date: Tue, 6 Jun 2023 23:49:47 +0200 Subject: [PATCH] Change permitted origin to ches.sw-gross.de --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index fa4d47e..aca7ffb 100644 --- a/main.go +++ b/main.go @@ -66,7 +66,7 @@ func registerForRandomGame(c *gin.Context) { } func registerWebSocketConnection(c *gin.Context) { - webSocketConn, err := websocket.Accept(c.Writer, c.Request, &websocket.AcceptOptions{OriginPatterns: []string{"localhost:*"}}) + webSocketConn, err := websocket.Accept(c.Writer, c.Request, &websocket.AcceptOptions{OriginPatterns: []string{"chess.sw-gross.de:*"}}) if err != nil { log.Println(err) return