AspNetCore.Docs/aspnetcore/security/enforcing-ssl
Cédric Luthi 68849ede7e
Enforce HTTPS in ASP.NET Core: Use Status308PermanentRedirect (#31739)
* Enforce HTTPS in ASP.NET Core: Use Status308PermanentRedirect

The previous paragraph says
> Use the fields of the [StatusCodes](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.statuscodes) class for assignments to `RedirectStatusCode`.

But the sample code then uses the status code defined in `System.Net` and a cast to `int`.

* Use Status307TemporaryRedirect in other sample code (Program2.cs)
2024-02-27 11:24:17 -08:00
..
_static Compressed .PNG image files (#15654) 2019-11-11 10:53:59 -06:00
sample-snapshot Enforce HTTPS in ASP.NET Core: Use Status308PermanentRedirect (#31739) 2024-02-27 11:24:17 -08:00