Preventing cross-site scripting in ASP.NET MVC pages

25 Views Asked by At

During a security test the following was flagged as a problem.

Reflected Cross-Site Scripting in the "gridName" Parameter - Grid - Cross site scripting

../grid/index?pageName=griddetail&gridName=%22;alert(24);+%22

Is there a way to prevent this for the entire site. Maybe something in OnActionExecuting?

0

There are 0 best solutions below