In ASP.NET Core how do you check if request is local?
<p>In the regular ASP.NET you could do this in a view to determine if the current request was from localhost:</p>

<p><code>HttpContext.Current.Request.IsLocal</code></p>

<p>But I can't find something similar in ASP.NET 6/Core/whatever it is meant to be called.</p>