Minifycode 2021-10-03 Viewed 1K times ASP.Net Core MVC

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