I\'m following the example here for a self-hosted ASP.NET Web API service. However, when specifying \"localhost\" as the host in the base address, it is translated to \"+\" (mea
Set your HostNameComparisonMode property to Exact:
HostNameComparisonMode
var config = new HttpSelfHostConfiguration("https://localhost/api/"); config.HostNameComparisonMode = HostNameComparisonMode.Exact;
See this article for more information on HostNameComparisonMode