53 references to SameSiteMode
Microsoft.AspNetCore.Antiforgery (2)
AntiforgeryOptions.cs (2)
20SameSite = SameSiteMode.Strict, 48/// <item><description><see cref="CookieBuilder.SameSite"/> defaults to <see cref="SameSiteMode.Strict"/>.</description></item>
Microsoft.AspNetCore.Authentication (2)
RemoteAuthenticationOptions.cs (2)
28SameSite = SameSiteMode.None, 146/// <item><description><see cref="CookieBuilder.SameSite"/> defaults to <see cref="SameSiteMode.None"/>.</description></item>
Microsoft.AspNetCore.Authentication.Cookies (1)
CookieAuthenticationOptions.cs (1)
19SameSite = SameSiteMode.Lax,
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
OpenIdConnectConfigureOptions.cs (1)
102? Enum.Parse<SameSiteMode>(sameSiteMode, ignoreCase: true)
OpenIdConnectOptions.cs (2)
82SameSite = SameSiteMode.None, 321/// <item><description><see cref="CookieBuilder.SameSite"/> defaults to <see cref="SameSiteMode.None"/>.</description></item>
Microsoft.AspNetCore.Authentication.Test (3)
CookieTests.cs (2)
364o.Cookie.SameSite = SameSiteMode.None; 388o.Cookie.SameSite = SameSiteMode.Strict;
OpenIdConnect\OpenIdConnectTests.cs (1)
483Assert.Equal(SameSiteMode.None, options.CorrelationCookie.SameSite);
Microsoft.AspNetCore.Authentication.Twitter (2)
TwitterOptions.cs (2)
35SameSite = SameSiteMode.Lax, 89/// <item><description><see cref="CookieBuilder.SameSite"/> defaults to <see cref="SameSiteMode.Lax"/>.</description></item>
Microsoft.AspNetCore.CookiePolicy (3)
CookiePolicyOptions.cs (2)
19public SameSiteMode MinimumSameSitePolicy { get; set; } = SameSiteMode.Unspecified;
ResponseCookiesWrapper.cs (1)
107|| Options.MinimumSameSitePolicy != SameSiteMode.Unspecified
Microsoft.AspNetCore.CookiePolicy.Test (15)
CookieChunkingTests.cs (1)
32SameSite = Http.SameSiteMode.Strict,
CookieConsentTests.cs (5)
239options.MinimumSameSitePolicy = Http.SameSiteMode.Strict; 244Assert.Equal(Http.SameSiteMode.Strict, context.CookieOptions.SameSite); 418options.MinimumSameSitePolicy = Http.SameSiteMode.Strict; 597options.MinimumSameSitePolicy = Http.SameSiteMode.Strict; 602Assert.Equal(Http.SameSiteMode.Strict, context.CookieOptions.SameSite);
CookiePolicyTests.cs (9)
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) }); 163MinimumSameSitePolicy = Http.SameSiteMode.Strict 184MinimumSameSitePolicy = Http.SameSiteMode.Lax 205MinimumSameSitePolicy = Http.SameSiteMode.None 226MinimumSameSitePolicy = Http.SameSiteMode.Unspecified 259context.Response.Cookies.Append("C", "C", new CookieOptions() { SameSite = Http.SameSiteMode.Strict });
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 (3)
CookieBuilder.cs (3)
53/// The SameSite attribute of the cookie. The default value is <see cref="SameSiteMode.Unspecified"/> 59public virtual SameSiteMode SameSite { get; set; } = SameSiteMode.Unspecified;
Microsoft.AspNetCore.Http.Features (4)
CookieOptions.cs (4)
77/// Gets or sets the value for the SameSite attribute of the cookie. The default value is <see cref="SameSiteMode.Unspecified"/> 79/// <returns>The <see cref="SameSiteMode"/> representing the enforcement mode of the cookie.</returns> 80public SameSiteMode SameSite { get; set; } = SameSiteMode.Unspecified;
Microsoft.AspNetCore.Http.Tests (3)
CookieOptionsTests.cs (1)
28SameSite = SameSiteMode.Strict,
ResponseCookiesTest.cs (2)
43SameSite = SameSiteMode.None, 190SameSite = SameSiteMode.Lax,
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
CookieTempDataProviderOptions.cs (3)
20SameSite = SameSiteMode.Lax, 40/// <item><description><see cref="CookieBuilder.SameSite"/> defaults to <see cref="SameSiteMode.Lax"/>. Setting this to 41/// <see cref="SameSiteMode.Strict"/> may cause browsers to not send back the cookie to the server in an
Microsoft.AspNetCore.Session (2)
SessionOptions.cs (2)
23/// <item><description><see cref="CookieBuilder.SameSite"/> defaults to <see cref="SameSiteMode.Lax"/>.</description></item> 53SameSite = SameSiteMode.Lax;
OpenIdConnectSample (3)
Startup.cs (3)
32if (options.SameSite == SameSiteMode.None) 38options.SameSite = SameSiteMode.Unspecified; 88options.MinimumSameSitePolicy = SameSiteMode.Unspecified;
SignalR.Client.FunctionalTestApp (2)
Startup.cs (2)
185cookieOptions.SameSite = Microsoft.AspNetCore.Http.SameSiteMode.None; 189expiredCookieOptions.SameSite = Microsoft.AspNetCore.Http.SameSiteMode.None;