Question

Which of the following is an effective countermeasure against Cross-Site Scripting (XS

  • S attacks in a web application?
A Disabling cookies for user authentication.
B Implementing input validation and output encoding
C Using symmetric key encryption for database queries
D Restricting file uploads to PDF and image formats only
E Enabling HTTP/2 protocol on the web server.