fix: replace localhost to 127.0.0.1
This commit is contained in:
parent
e760ddae0a
commit
74ba4e901a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user