Commit Graph

7 Commits (9bac552349e83bc3374d3f90d7277c2882b7417b)

Author SHA1 Message Date
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
Luke Latham 12b932e203
Code patch (#24639) 2022-01-17 07:36:29 -06:00
Rick Anderson b1d420dd25
.NET 6 update enforce HTTPS /4 (#23773)
* .NET 6 update enforce HTTPS /4

* .NET 6 update enforce HTTPS /4
2021-11-09 13:47:11 -10:00
Michal Mrnuštík 383b0f5c3e
Replace status code with status code enum (#22116)
* Replace all hardcoded status codes with System.Net.HttpStatusCode

* Replace all StatusCodes references to HttpStatusCode

Co-authored-by: Michal Mrnuštík <michal.mrnustik@riganti.cz>
2021-04-23 10:14:47 -10:00
Scott Addie 4cad485859
Add https_port setting to appsettings.json (#14188) 2019-09-06 15:51:22 -05:00
Tom Dykstra d049785258 Enforce HTTPS 3.0 update (#13844)
* 3.0 update

* fix links

* limit code to snapshot files

* update screenshot

* fix image

* change file-level moniker range

* force line breaks

* corrections

* moniker name change

* formatting

* fix link

* minor cleanup

* delete unused files

* restore mention of 2.1

* change br tag to double space

* remove extraneous file
2019-09-06 12:48:24 -05:00
Luke Latham a5b3914bb7
Enforcing HTTPS enhancements (#9044) 2018-10-23 13:03:36 -05:00