22 writes to Secure
Microsoft.AspNetCore.CookiePolicy (2)
ResponseCookiesWrapper.cs (2)
234options.Secure = true; 242options.Secure = true;
Microsoft.AspNetCore.CookiePolicy.Test (11)
CookieChunkingTests.cs (5)
34Secure = true, 213new ChunkingCookieManager().DeleteCookie(context, "TestCookie", new CookieOptions() { Domain = "foo.com", Secure = true, Extensions = { "extension" } }); 235new ChunkingCookieManager().DeleteCookie(context, "TestCookie", new CookieOptions() { Domain = "foo.com", Secure = true }); 253new ChunkingCookieManager().DeleteCookie(context, "TestCookie", new CookieOptions() { Domain = "foo.com", Secure = true }); 286Secure = true,
CookiePolicyTests.cs (6)
24context.Response.Cookies.Append("B", "B", new CookieOptions { Secure = false }); 26context.Response.Cookies.Append("D", "D", new CookieOptions { Secure = true }); 258context.Response.Cookies.Append("B", "B", new CookieOptions { Secure = false }); 260context.Response.Cookies.Append("D", "D", new CookieOptions { Secure = true }); 297context.Response.Cookies.Delete("B", new CookieOptions { Secure = false }); 299context.Response.Cookies.Delete("D", new CookieOptions { Secure = true });
Microsoft.AspNetCore.Http.Abstractions (1)
CookieBuilder.cs (1)
117Secure = SecurePolicy == CookieSecurePolicy.Always || (SecurePolicy == CookieSecurePolicy.SameAsRequest && context.Request.IsHttps),
Microsoft.AspNetCore.Http.Features (1)
CookieOptions.cs (1)
40Secure = options.Secure;
Microsoft.AspNetCore.Http.Tests (2)
CookieOptionsTests.cs (1)
27Secure = true,
ResponseCookiesTest.cs (1)
185Secure = true,
Microsoft.AspNetCore.Rewrite (2)
UrlActions\ChangeCookieAction.cs (2)
50Secure = Secure, 62Secure = Secure,
Microsoft.AspNetCore.Security.Microbenchmarks (1)
ChunkingCookieManagerBenchmark.cs (1)
33Secure = true
SignalR.Client.FunctionalTestApp (2)
Startup.cs (2)
186cookieOptions.Secure = true; 190expiredCookieOptions.Secure = true;
12 references to Secure
Microsoft.AspNetCore.Antiforgery.Test (1)
DefaultAntiforgeryTokenStoreTest.cs (1)
390Assert.Equal(defaultCookieSecureValue, cookies.Options.Secure);
Microsoft.AspNetCore.CookiePolicy (2)
ResponseCookiesWrapper.cs (2)
232if (!options.Secure) 240if (Context.Request.IsHttps && !options.Secure)
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)
62/// The policy that will be used to determine <see cref="CookieOptions.Secure"/>.
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
CookieBuilderTests.cs (1)
25Assert.Equal(secure, options.Secure);
Microsoft.AspNetCore.Http.Features (2)
CookieOptions.cs (2)
40Secure = options.Secure; 118Secure = Secure,
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
CookieTempDataProviderTest.cs (3)
175Assert.Equal(expectedSecureFlag, cookieInfo.Options.Secure); 210Assert.False(cookieInfo.Options.Secure); 260Assert.False(cookieInfo.Options.Secure);