13 references to Cookie
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
338
options.
Cookie
.Name = DashboardAntiForgeryCookieName;
Microsoft.AspNetCore.Antiforgery (12)
Internal\AntiforgeryOptionsSetup.cs (2)
25
if (options.
Cookie
.Name == null)
28
options.
Cookie
.Name = AntiforgeryOptions.DefaultCookiePrefix + ComputeCookieName(applicationId);
Internal\DefaultAntiforgery.cs (4)
107
_logger.MissingCookieToken(_options.
Cookie
.Name);
153
Resources.FormatAntiforgery_CookieToken_MustBeProvided(_options.
Cookie
.Name));
258
if (_options.
Cookie
.SecurePolicy == CookieSecurePolicy.Always && !context.Request.IsHttps)
261
string.Join(".", nameof(AntiforgeryOptions), nameof(AntiforgeryOptions.
Cookie
), nameof(CookieBuilder.SecurePolicy)),
Internal\DefaultAntiforgeryTokenStore.cs (6)
26
var requestCookie = httpContext.Request.Cookies[_options.
Cookie
.Name!];
40
var cookieToken = httpContext.Request.Cookies[_options.
Cookie
.Name!];
84
var options = _options.
Cookie
.Build(httpContext);
86
if (_options.
Cookie
.Path != null)
88
options.Path = _options.
Cookie
.Path;
99
httpContext.Response.Cookies.Append(_options.
Cookie
.Name!, token, options);