Skip to content
Nemo edited this page Aug 18, 2020 · 1 revision

TWA-0801

Message

cookie '${cookie_name}' has 'secure' but no 'httponly' flag

Explanation

A cookie was found in your HTTP response that is marked as secure (so it will only be sent over HTTPS), but without the httponly flag. The httponly flag ensures that the cookie is not readable by javascript, reducing the risk for session-hijacking attacks or XSS attacks.

Remediation

In your application, set the httponly flag on the cookie. Most frameworks will have a configuration setting for this, and you can check the owasp or MDN docs for more information

Clone this wiki locally