15 writes to SameSite
Microsoft.AspNetCore.Http.Features (1)
CookieOptions.cs (1)
121SameSite = (Net.Http.Headers.SameSiteMode)SameSite,
Microsoft.Net.Http.Headers (5)
SetCookieHeaderValue.cs (5)
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,
27 references to SameSite
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 (16)
CookieConsentTests.cs (16)
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); 587Assert.Equal(consentCookie.SameSite, manualCookie.SameSite); 632Assert.Equal(Net.Http.Headers.SameSiteMode.Strict, consentCookie.SameSite); 640Assert.Equal(consentCookie.SameSite, manualCookie.SameSite); 677Assert.Equal(Net.Http.Headers.SameSiteMode.Unspecified, consentCookie.SameSite); 685Assert.Equal(consentCookie.SameSite, manualCookie.SameSite);
Microsoft.Net.Http.Headers (9)
SetCookieHeaderValue.cs (9)
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) 730&& SameSite == other.SameSite 745^ SameSite.GetHashCode()