Change permitted origin to ches.sw-gross.de

This commit is contained in:
Marco 2023-06-06 23:49:47 +02:00
parent 23a02b95d9
commit 9f4cab679c

View File

@ -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