diff --git a/Source/Saml2.Authentication.Core/Configuration/Saml2Options.cs b/Source/Saml2.Authentication.Core/Configuration/Saml2Options.cs index def6a20..6ba07ed 100644 --- a/Source/Saml2.Authentication.Core/Configuration/Saml2Options.cs +++ b/Source/Saml2.Authentication.Core/Configuration/Saml2Options.cs @@ -22,7 +22,8 @@ public Saml2Options() Name = $"{Saml2Defaults.SessionKeyPrefix}.{Guid.NewGuid():N}", HttpOnly = true, SameSite = SameSiteMode.None, - SecurePolicy = CookieSecurePolicy.SameAsRequest + SecurePolicy = CookieSecurePolicy.SameAsRequest, + IsEssential = true }; } @@ -68,4 +69,4 @@ public override CookieOptions Build(HttpContext context, DateTimeOffset expiresF return cookieOptions; } } -} \ No newline at end of file +}