security.authentication

Harden auth-bearing cookies

Auth and session cookies should set HttpOnly, Secure, and SameSite.

#Metadata

#Why it matters

Cookie flags prevent browser scripts, mixed transport, and cross-site requests from exposing session-bearing values.

#Remediation

Add `HttpOnly`, `Secure`, and an explicit `SameSite` policy before the cookie is used for session or auth state.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.security.insecure-auth-cookie-flags.rule.yaml.