問題詳情

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

參考答案

無參考答案

內容推薦

內容推薦