Skip to content

Commit

Permalink
Additional remarks about HTTPS.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Jan 10, 2024
1 parent 49940d6 commit 8c8a473
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ public static IApplicationBuilder UseNosniffContentTypeOptionsHeader(this IAppli
/// Adds a middleware that checks all <c>Set-Cookie</c> headers and replaces any with a version containing
/// <c>Secure</c> and <c>SameSite=Strict</c> modifiers if they were missing.
/// </summary>
/// <remarks><para>
/// With this all cookies will only work in a secure context, so you should have some way to automatically redirect
/// any HTTP request to HTTPS.
/// </para></remarks>
public static IApplicationBuilder UseStrictAndSecureCookies(this IApplicationBuilder app)
{
static void UpdateIfMissing(ref string cookie, ref bool changed, string test, string append)
Expand Down

0 comments on commit 8c8a473

Please sign in to comment.