In this article, you will learn how to get current domain name in ASP.NET Core
String domainName = $"{HttpContext.Request.Scheme}://{HttpContext.Request.Host}";
How to get current domain name in ASP.NET Core minify code