> ## 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 secure flag false

> [accordion] cookie-secure-flag-false
>
> A cookie was detected without setting the 'secure' flag. The 'secure' flag for cookies prevents the client from transmitting the cookie over insecure channels such as HTTP. Set the 'secure' flag by calling '\$COOKIE.setSecure(true);'\
> **Likelihood**: LOW\
> **Confidence**: HIGH\
> **CWE**: \
> \- CWE-614: Sensitive Cookie in HTTPS Session Without 'Secure' Attribute
> \
> **OWASP**: \
> \- A05:2021 - Security Misconfiguration


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