> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codeant.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Cookie missing httponly

> [accordion] cookie-missing-httponly
>
> A cookie was detected without setting the 'HttpOnly' flag. The 'HttpOnly' flag for cookies instructs the browser to forbid client-side scripts from reading the cookie. Set the 'HttpOnly' flag by calling 'cookie.setHttpOnly(true);'\
> **Likelihood**: LOW\
> **Confidence**: HIGH\
> **CWE**: \
> \- CWE-1004: Sensitive Cookie Without 'HttpOnly' Flag
> \
> **OWASP**: \
> \- A05:2021 - Security Misconfiguration


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.