1 A web application uses a cookies to track a client as it navigates through the pages that
constitutes the application. Which code snippet can be used by the web application to reduce the
chance of a cross-site scripting attack by setting some property of the cookie before returning it to
the client?
(A) cookie.setHttpOnly(true)
(B) cookie.setMaxAge(3600)
(C) cookie.setPath("/")
(D) cookie.setSecure(true)