In this article, we will learn how to avoid Cross-Site Scripting attacks when we are posting our data through AJAX POST method in our application.
In my previous article, Purpose Of ValidateAntiForgeryToken In MVC Application, we have seen how we could avoid a scripting attack, coming from a miscellaneous site, by using built-in ValidateAntiForgeryToken in our application.
Important Points
Let’s start.
Points need to remember,
Testing Approach
So, in this manner, we can secure our application from attacks, when we are using ajax post methods. I hope you understand the concept. Feel free to contact me if you have any doubts, and also give your valuable feedback on the article. Happy Coding.
Node Js and Angular CheatSheet