Answers for "azure function get user ip"

0

azure function get user ip

private static string GetIpFromRequestHeaders(HttpRequest request)
{
      return (request.Headers["X-Forwarded-For"].FirstOrDefault() ?? "").Split(new char[] { ':' }).FirstOrDefault();
}
Posted by: Guest on September-19-2021

Browse Popular Code Answers by Language