none
How Can I achieve this ? RRS feed

  • Question

  • Hi team,

    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

    • Moved by CoolDadTx Wednesday, March 20, 2019 1:38 PM ASP.NET related
    Wednesday, March 20, 2019 1:07 PM

All replies