security.authentication

Set `Secure` on Express session cookies

Express session and cookie-session configs should not disable the `Secure` flag.

#Metadata

#Why it matters

Cookies sent over non-HTTPS transport are easier to intercept or replay.

#Remediation

Set `secure: true` and serve the cookie only over HTTPS.

#Repository path

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