Here Mudassar Ahmed Khan has explained with an example, how to send AntiForgeryToken with AJAX requests in ASP.Net Core Razor Pages.
The AntiForgeryToken is used to prevent cross-site request forgery (CSRF) attacks and this article will illustrate how to configure and use the AntiForgeryToken during jQuery AJAX POST call in ASP.Net Core Razor Pages.
↧