Hi,Please visit below link:http://www.c-sharpcorner.com/UploadFile/b182bf/what-is-cross-site-scripting-attack-in-mvc/Note: Please accept the answer if it help you and answer your question.Thanks & Regards, Ritesh
Use validateantiforgerytoken attribute.