13 writes to HeaderName
Microsoft.AspNetCore.Antiforgery.Test (13)
DefaultAntiforgeryTest.cs (4)
847
HeaderName
= null,
871
HeaderName
= null,
895
HeaderName
= "header-name",
921
HeaderName
= "header-name",
DefaultAntiforgeryTokenStoreTest.cs (9)
112
HeaderName
= "header-name",
140
HeaderName
= "header-name",
170
HeaderName
= "header-name",
199
HeaderName
= "header-name",
227
HeaderName
= "header-name",
254
HeaderName
= "header-name",
279
HeaderName
= "header-name",
307
HeaderName
= null,
332
HeaderName
= null,
8 references to HeaderName
Microsoft.AspNetCore.Antiforgery (8)
Internal\DefaultAntiforgery.cs (5)
113
_logger.MissingRequestToken(_options.FormFieldName, _options.
HeaderName
);
158
if (_options.
HeaderName
== null)
165
var message = Resources.FormatAntiforgery_HeaderToken_MustBeProvided(_options.
HeaderName
);
172
_options.
HeaderName
);
426
_options.
HeaderName
);
Internal\DefaultAntiforgeryTokenStore.cs (3)
45
if (_options.
HeaderName
!= null)
47
requestToken = httpContext.Request.Headers[_options.
HeaderName
];
76
return new AntiforgeryTokenSet(requestToken, cookieToken, _options.FormFieldName, _options.
HeaderName
);