1 write to _options
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultAntiforgery.cs (1)
32_options = antiforgeryOptionsAccessor.Value;
13 references to _options
Microsoft.AspNetCore.Antiforgery (13)
Internal\DefaultAntiforgery.cs (13)
107_logger.MissingCookieToken(_options.Cookie.Name); 113_logger.MissingRequestToken(_options.FormFieldName, _options.HeaderName); 153Resources.FormatAntiforgery_CookieToken_MustBeProvided(_options.Cookie.Name)); 158if (_options.HeaderName == null) 160var message = Resources.FormatAntiforgery_FormToken_MustBeProvided(_options.FormFieldName); 165var message = Resources.FormatAntiforgery_HeaderToken_MustBeProvided(_options.HeaderName); 171_options.FormFieldName, 172_options.HeaderName); 247if (!_options.SuppressXFrameOptionsHeader && !httpContext.Response.Headers.ContainsKey(HeaderNames.XFrameOptions)) 258if (_options.Cookie.SecurePolicy == CookieSecurePolicy.Always && !context.Request.IsHttps) 425_options.FormFieldName, 426_options.HeaderName);