You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, as you can see above the default value, if not configured, is *. So there might not be value in putting this configuration value in appsettings for all the templates.
We should consider removing this config value from the templates if it doesn't add value.
By default the appsettings.json file in the templates have
"AllowedHosts": "*"
.From everything I can tell from the code, this appears to be used for "host filtering":
aspnetcore/src/DefaultBuilder/src/WebHost.cs
Lines 253 to 268 in d07f377
aspnetcore/src/Middleware/HostFiltering/src/HostFilteringMiddleware.cs
Lines 63 to 70 in d07f377
However, as you can see above the default value, if not configured, is
*
. So there might not be value in putting this configuration value in appsettings for all the templates.We should consider removing this config value from the templates if it doesn't add value.
See the discussion here.
The text was updated successfully, but these errors were encountered: