A cookie's security can be enhanced by setting the _________ flag, which prevents its access via JavaScript.
- HttpOnly
- Max-Age
- Path
- Secure
The HttpOnly flag enhances a cookie's security by preventing its access via JavaScript.
Loading...
Related Quiz
- What is the significance of the web.xml security constraints in servlet security?
- Which strategy involves adding more servers to handle increased load in a web application?
- How does a Content Security Policy (CSP) help in preventing XSS attacks?
- How can you handle a situation where a database connection is lost during a transaction?
- How does a servlet container typically interact with a connection pool?