When designing a servlet that handles sensitive data, which header should be set to secure the response?

  • Access-Control-Allow-Origin, setHeader()
  • Strict-Transport-Security, setHeader()
  • X-Content-Type-Options, setHeader()
  • X-Frame-Options, setHeader()
To secure the response when handling sensitive data, the Strict-Transport-Security header should be set using the setHeader() method in the HttpServletResponse.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *