38 references to SameSiteMode
Microsoft.AspNetCore.Authentication.Test (2)
OpenIdConnect\OpenIdConnectChallengeTests.cs (2)
446Assert.Equal(Net.Http.Headers.SameSiteMode.None, nonceCookie.SameSite); 454Assert.Equal(Net.Http.Headers.SameSiteMode.None, correlationCookie.SameSite);
Microsoft.AspNetCore.CookiePolicy.Test (10)
CookieConsentTests.cs (10)
224Assert.Equal(Net.Http.Headers.SameSiteMode.Unspecified, consentCookie.SameSite); 229Assert.Equal(Net.Http.Headers.SameSiteMode.Unspecified, testCookie.SameSite); 272Assert.Equal(Net.Http.Headers.SameSiteMode.Strict, consentCookie.SameSite); 403Assert.Equal(Net.Http.Headers.SameSiteMode.Unspecified, testCookie.SameSite); 408Assert.Equal(Net.Http.Headers.SameSiteMode.Unspecified, consentCookie.SameSite); 450Assert.Equal(Net.Http.Headers.SameSiteMode.Strict, consentCookie.SameSite); 515Assert.Equal(Net.Http.Headers.SameSiteMode.Unspecified, testCookie.SameSite); 579Assert.Equal(Net.Http.Headers.SameSiteMode.Unspecified, consentCookie.SameSite); 632Assert.Equal(Net.Http.Headers.SameSiteMode.Strict, consentCookie.SameSite); 677Assert.Equal(Net.Http.Headers.SameSiteMode.Unspecified, consentCookie.SameSite);
Microsoft.AspNetCore.Http.Features (1)
CookieOptions.cs (1)
121SameSite = (Net.Http.Headers.SameSiteMode)SameSite,
Microsoft.Net.Http.Headers (16)
SetCookieHeaderValue.cs (16)
28private static readonly string SameSiteNoneToken = SameSiteMode.None.ToString().ToLowerInvariant(); 29private static readonly string SameSiteLaxToken = SameSiteMode.Lax.ToString().ToLowerInvariant(); 30private static readonly string SameSiteStrictToken = SameSiteMode.Strict.ToString().ToLowerInvariant(); 166public SameSiteMode SameSite { get; set; } = SameSiteMode.Unspecified; 223if (SameSite == SameSiteMode.None) 228else if (SameSite == SameSiteMode.Lax) 233else if (SameSite == SameSiteMode.Strict) 369if (SameSite == SameSiteMode.None) 373else if (SameSite == SameSiteMode.Lax) 377else if (SameSite == SameSiteMode.Strict) 628result.SameSite = SameSiteMode.Unspecified; 636result.SameSite = SameSiteMode.Strict; 640result.SameSite = SameSiteMode.Lax; 644result.SameSite = SameSiteMode.None; 648result.SameSite = SameSiteMode.Unspecified;
Microsoft.Net.Http.Headers.Tests (9)
SetCookieHeaderValueTest.cs (9)
19SameSite = SameSiteMode.Strict, 50SameSite = SameSiteMode.Lax, 56SameSite = SameSiteMode.None, 136SameSite = SameSiteMode.Strict, 165SameSite = SameSiteMode.Lax 172SameSite = SameSiteMode.Strict 178SameSite = SameSiteMode.None 184SameSite = SameSiteMode.Unspecified 239SameSite = SameSiteMode.Strict,