15 writes to SameSite
Microsoft.AspNetCore.CookiePolicy (1)
ResponseCookiesWrapper.cs (1)
254options.SameSite = Options.MinimumSameSitePolicy;
Microsoft.AspNetCore.CookiePolicy.Test (6)
CookieChunkingTests.cs (1)
32SameSite = Http.SameSiteMode.Strict,
CookiePolicyTests.cs (5)
41context.Response.Cookies.Append("C", "C", new CookieOptions { SameSite = Http.SameSiteMode.None }); 42context.Response.Cookies.Append("D", "D", new CookieOptions { SameSite = Http.SameSiteMode.Lax }); 43context.Response.Cookies.Append("E", "E", new CookieOptions { SameSite = Http.SameSiteMode.Strict }); 44context.Response.Cookies.Append("F", "F", new CookieOptions { SameSite = (Http.SameSiteMode)(-1) }); 259context.Response.Cookies.Append("C", "C", new CookieOptions() { SameSite = Http.SameSiteMode.Strict });
Microsoft.AspNetCore.Http.Abstractions (1)
CookieBuilder.cs (1)
112SameSite = SameSite,
Microsoft.AspNetCore.Http.Features (1)
CookieOptions.cs (1)
41SameSite = options.SameSite;
Microsoft.AspNetCore.Http.Tests (3)
CookieOptionsTests.cs (1)
28SameSite = SameSiteMode.Strict,
ResponseCookiesTest.cs (2)
43SameSite = SameSiteMode.None, 190SameSite = SameSiteMode.Lax,
OpenIdConnectSample (1)
Startup.cs (1)
38options.SameSite = SameSiteMode.Unspecified;
SignalR.Client.FunctionalTestApp (2)
Startup.cs (2)
185cookieOptions.SameSite = Microsoft.AspNetCore.Http.SameSiteMode.None; 189expiredCookieOptions.SameSite = Microsoft.AspNetCore.Http.SameSiteMode.None;
9 references to SameSite
Microsoft.AspNetCore.CookiePolicy (1)
ResponseCookiesWrapper.cs (1)
252if (options.SameSite < Options.MinimumSameSitePolicy)
Microsoft.AspNetCore.CookiePolicy.Test (2)
CookieConsentTests.cs (2)
244Assert.Equal(Http.SameSiteMode.Strict, context.CookieOptions.SameSite); 602Assert.Equal(Http.SameSiteMode.Strict, context.CookieOptions.SameSite);
Microsoft.AspNetCore.Http (2)
Internal\ResponseCookies.cs (2)
49if (!options.Secure && options.SameSite == SameSiteMode.None) 73if (!options.Secure && options.SameSite == SameSiteMode.None)
Microsoft.AspNetCore.Http.Abstractions (1)
CookieBuilder.cs (1)
57/// Determines the value that will be set for <see cref="CookieOptions.SameSite"/>.
Microsoft.AspNetCore.Http.Features (2)
CookieOptions.cs (2)
41SameSite = options.SameSite; 121SameSite = (Net.Http.Headers.SameSiteMode)SameSite,
OpenIdConnectSample (1)
Startup.cs (1)
32if (options.SameSite == SameSiteMode.None)