diff --git a/Endpoint/Common/Services/UrlHelper.cs b/Endpoint/Common/Services/UrlHelper.cs index 428ebdd..b7c7a7a 100644 --- a/Endpoint/Common/Services/UrlHelper.cs +++ b/Endpoint/Common/Services/UrlHelper.cs @@ -7,7 +7,7 @@ namespace Mirea.Api.Endpoint.Common.Services; public static class UrlHelper { public static string CurrentDomain(HttpContext context) => - context.Request.Headers["X-Forwarded-Host"].FirstOrDefault() ?? context.Request.Host.Value; + context.Request.Headers["X-Forwarded-Host"].FirstOrDefault() ?? context.Request.Host.Host; private static string CreateSubPath(string? path) {