Search Results
Your query returned 18 results.
10 May 2022 10 May 2022 0 Comments  331 Views
ASP.Net  AJAX  jQuery  JSON  MVC  Core
Here Mudassar Khan has explained with an example, how to use AntiForgery Token with jQuery AJAX and JSON in ASP.Net Core MVC.

The AntiForgery Token will be sent to the Controller’s Action method where it will be validated in ASP.Net Core MVC.
10 May 2022 10 May 2022 0 Comments  343 Views
Here Mudassar Khan has explained with an example, how to solve the error which occurs when using AntiForgery Token with jQuery AJAX in ASP.Net MVC.

The required anti-forgery form field "__RequestVerificationToken" is not present.

The above error is caused when AntiForgery Token is not correctly passed to the Controller when with jQuery AJAX in ASP.Net MVC.
10 May 2022 10 May 2022 0 Comments  251 Views
ASP.Net  AJAX  jQuery  JSON  MVC
Here Mudassar Khan has explained with an example, how to use AntiForgery Token with jQuery AJAX and JSON in ASP.Net MVC.

The AntiForgery Token will be sent to the Controller’s Action method where it will be validated in ASP.Net MVC.
06 May 2022 06 May 2022 0 Comments  346 Views
Here Mudassar Khan has explained with an example, how to prevent Cross-Site Request Forgery Attack in ASP.Net MVC.

In ASP.Net MVC, AntiForgery Token is used to prevent Cross-Site Request Forgery Attacks.
06 May 2022 06 May 2022 0 Comments  365 Views
ASP.Net  MVC  Core
Here Mudassar Khan has explained with an example, what is AntiForgery Token and how to use it in ASP.Net Core MVC.
06 May 2022 06 May 2022 0 Comments  369 Views
Here Mudassar Khan has explained with an example, what is AntiForgery Token and how to use it in ASP.Net MVC.
05 May 2022 05 May 2022 0 Comments  267 Views
ASP.Net  MVC  Core
Here Mudassar Khan has explained with an example, how to prevent Cross-Site Request Forgery Attack in ASP.Net Core MVC.

AntiForgery Token is used to prevent Cross-Site Request Forgery Attack in ASP.Net Core MVC.
05 May 2022 05 May 2022 0 Comments  292 Views
ASP.Net  MVC  Core
Here Mudassar Khan has explained with an example, how to implement AntiForgery Token in ASP.Net Core MVC.
05 May 2022 05 May 2022 0 Comments  285 Views
ASP.Net  MVC  Form  Core
Here Mudassar Khan has explained with an example, how to submit (post) a Form and send data from View to Controller along with AntiForgery Token in ASP.Net Core MVC.
30 Apr 2022 30 Apr 2022 0 Comments  589 Views
Here Mudassar Khan has explained explain with an example, how to use ValidateAntiForgeryToken attribute in ASP.Net MVC.

When a method is decorated with ValidateAntiForgeryToken attribute, it then validates all requests using the AntiForgeryToken in ASP.Net MVC.
30 Apr 2022 30 Apr 2022 0 Comments  348 Views
ASP.Net  HTML  MVC
Here Mudassar Khan has explained with an example, how to use Html.AntiForgeryToken Helper method in ASP.Net MVC.

The Html.AntiForgeryToken is used to generate a unique AntiForgery Token in a Hidden Field which is sent to the server for validating requests in ASP.Net MVC.
30 Apr 2022 30 Apr 2022 0 Comments  310 Views
ASP.Net  MVC  Form
Here Mudassar Khan has explained with an example, how to use AntiForgery Token with Form Post (Submit) in ASP.Net MVC.
27 Apr 2022 27 Apr 2022 0 Comments  654 Views
Here Mudassar Khan has explained how to resolve the following error in ASP.Net MVC.

The required anti-forgery cookie "__RequestVerificationToken" is not present.

The above error occurs when the ValidateAntiForgeryToken attribute is added but the anti-forgery cookie is missing.
27 Apr 2022 27 Apr 2022 0 Comments  548 Views
Here Mudassar Khan has explained with an example, how to use AntiForgery Token in ASP.Net MVC.
25 Apr 2022 25 Apr 2022 0 Comments  724 Views
ASP.Net  AJAX  jQuery  MVC  Web API  Core
Here Mudassar Khan has explained with an example, how to implement AntiForgery Token in Web API in ASP.Net Core MVC.

This article will explain how to make a jQuery POST call to Web API using jQuery AJAX in ASP.Net Core MVC.
21 Aug 2021 25 Apr 2022 0 Comments  3842 Views
ASP.Net  AJAX  AngularJS  MVC  Core
Here Mudassar Khan has explained with an example, how to send AntiForgeryToken with AngularJS AJAX request in ASP.Net Core MVC.

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 AngularJS AJAX request in ASP.Net Core MVC.
29 Jan 2021 25 Apr 2022 0 Comments  3403 Views
Here Mudassar Khan has explained with an example, how to use AntiForgeryToken with jQuery Unobtrusive AJAX in ASP.Net Core Razor Pages.

The jQuery Unobtrusive AJAX library does not support adding headers to the request and hence it is not possible to send AntiForgeryToken.

Thus, the possible way is to make use of normal jQuery AJAX function and then send the AntiForgeryToken by adding it to the request headers.
18 Nov 2020 25 Apr 2022 0 Comments  12397 Views
Here Mudassar 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.