Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit b2643f3

Browse files
committed
Make default lax
1 parent 2b60dbc commit b2643f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.AspNetCore.Http.Features/CookieOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ public CookieOptions()
4444

4545

4646
/// <summary>
47-
/// Gets or sets the value for the SameSite attribute of the cookie.
47+
/// Gets or sets the value for the SameSite attribute of the cookie. The default value is <see cref="SameSiteEnforcementMode.Lax"/>
4848
/// </summary>
4949
/// <returns>The <see cref="SameSiteEnforcementMode"/> representing the enforcement mode of the cookie.</returns>
50-
public SameSiteEnforcementMode SameSite { get; set; }
50+
public SameSiteEnforcementMode SameSite { get; set; } = SameSiteEnforcementMode.Lax;
5151

5252
/// <summary>
5353
/// Gets or sets a value that indicates whether a cookie is accessible by client-side script.

0 commit comments

Comments
 (0)