diff --git a/Endpoint/Common/Services/UrlHelper.cs b/Endpoint/Common/Services/UrlHelper.cs index 3de08b9..0c2a4f5 100644 --- a/Endpoint/Common/Services/UrlHelper.cs +++ b/Endpoint/Common/Services/UrlHelper.cs @@ -45,7 +45,7 @@ public static class UrlHelper public static string GetApiUrl(this HttpContext context, string apiPath = "") { var scheme = GetCurrentScheme(context); - var domain = GetCurrentDomain(context).TrimEnd('/'); + var domain = GetCurrentDomain(context).TrimEnd('/').Replace("localhost", "127.0.0.1"); var port = context.Request.Host.Port; var portString = port.HasValue && port != 80 && port != 443 ? $":{port}" : string.Empty;