(httpContext.Features.Get<IHttpContextAccessor>()?.HttpContext?.Request.Headers.TryGetValue("HTTP_X_FORWARDED_FOR", out StringValues value) ?? false)
{
Console.WriteLine(value);
}
https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-2.1
Обсуждают сегодня