721 B
721 B
[!WARNING] API that relies on the Host header, such as xref:Microsoft.AspNetCore.Http.HttpRequest.Host%2A?displayProperty=nameWithType and xref:Microsoft.AspNetCore.Builder.RoutingEndpointConventionBuilderExtensions.RequireHost%2A, are subject to potential spoofing by clients.
To prevent host and port spoofing, use one of the following approaches: