1 write to AllowedHosts
Microsoft.AspNetCore (1)
WebHost.cs (1)
265
options.
AllowedHosts
= (hosts?.Length > 0 ? hosts : new[] { "*" });
5 references to AllowedHosts
Microsoft.AspNetCore (2)
WebHost.cs (2)
260
if (options.
AllowedHosts
== null || options.
AllowedHosts
.Count == 0)
Microsoft.AspNetCore.HostFiltering (3)
MiddlewareConfigurationManager.cs (3)
47
if (options.
AllowedHosts
?.Count > 0 && !TryProcessHosts(options.
AllowedHosts
, allowedHosts))
93
return $"{{AllowedHosts = {string.Join("; ", hostFilteringOptions.
AllowedHosts
)}, AllowEmptyHosts = {hostFilteringOptions.AllowEmptyHosts}, IncludeFailureMessage = {hostFilteringOptions.IncludeFailureMessage}}}";