diff --git a/Gameboard.ShogiUI.Sockets/Startup.cs b/Gameboard.ShogiUI.Sockets/Startup.cs index c735d0e..cb857d0 100644 --- a/Gameboard.ShogiUI.Sockets/Startup.cs +++ b/Gameboard.ShogiUI.Sockets/Startup.cs @@ -180,6 +180,12 @@ namespace Gameboard.ShogiUI.Sockets ClientId = "c1e94676-cab0-42ba-8b6c-9532b8486fff", UsePkceWithAuthorizationCodeGrant = true }; + config.TransformToExternalPath = (route, request) => + { + return request.Host.HasValue && request.Host.Value.Contains("localhost") + ? route + : $"/Gameboard.ShogiUI.Sockets{route}"; + }; //config.WithCredentials = true; }) .UseWebSockets(socketOptions)