The example under the section "HTTP Strict Transport Security Protocol (HSTS)" where the
UseHsts()
method is using an overload to provide an anonymous instance of
HstsOptions
does not seem to be possible using the "ASP.NET Core Web App" (
dotnet new webapp
) template (.NET Core v3.0 in my case). No overload of
UseHsts()
that takes more than 1 argument cannot be found. I've searched through the source code of the AspNetCore repository and no such overload exists. Where do I find this extension method?
Document Details
⚠
Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: c7ddfb2f-5dea-5e31-2a27-02a4dc16104c
Version Independent ID: 12ca0b9a-2638-a4ce-c45f-d4579c83dafb
Content:
Enforce HTTPS in ASP.NET Core
Content Source:
aspnetcore/security/enforcing-ssl.md
Product:
aspnet-core
Technology:
aspnetcore-security
GitHub Login:
@Rick-Anderson
Microsoft Alias:
riande
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Issue actions