Quantcast
Channel: ASPSnippets RSS Feed
Viewing all articles
Browse latest Browse all 4757

Sending AntiForgeryToken with AJAX requests in ASP.Net Core Razor Pages

$
0
0
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.

Viewing all articles
Browse latest Browse all 4757