Explain the possible ways to prevent xss attacks on mvc application?
Answer Posted / Ramendr Pratap Singh
1. Input validation: Validate user inputs to ensure that they do not contain malicious code.n2. Content Security Policy (CSP): Implement a CSP to restrict the types of resources that can be loaded in your application.n3. Escaping and encoding user input: Properly escape and encode user input to prevent injection attacks.n4. Filtering user-supplied data: Remove any unnecessary or suspicious tags from user-supplied data.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers