ASP.NET Core searches this cookie to find the X-CSRF token.
ValidateAntiForgeryToken is an action filter in which requests made with actions that apply this filter will be blocked if the request does not contain a valid antiforgery token.
Typically, ASP.NET Core can look for a token in a cookie or header. So you may have a situation where
ASP.NET cookie, DefaultCookiePrefix ( ".AspNetCore.Antiforgery." ).
, antiforgery CookieName:
services.AddAntiforgery(options => options.CookieName = "X-CSRF-TOKEN-COOKIENAME");
, :
services.AddAntiforgery(options => options.HeaderName = "X-XSRF-TOKEN");
: