How Can I achieve this ? RRS feed

  • Question

  • I have below json request and the below feed highlighted in Bold is used to do XSS attack while posting the request to my Web Api . Could you please let me know how can I prevent the XSS attack on my API Layer ?

    "FirstName": "FirstName",
    "LastName": "LastName",
    "DeptCode": "Johnson",
    "Email": "Y9uStA64C37MIIHdBbemszOPF72/DPtxa4Ej3NAnsoY=",
    "Preferences":{ "BLOG":"Y","B2C":"%3cscript%3ealert(0)%3c%2fscript%3e"}

    Thanks in advance

    Thursday, March 21, 2019 11:52 AM

All replies