添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Overload of UseHsts Doesn't Seem To Exist #15494

Closed

Description

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
  • Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Assignees

    No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions