A cookie is being set with SameSite=None but WITHOUT Secure.
Why AI tools produce this: AI coding tools produce this regularly, typically when prompted for a shortcut or a quick fix.
Why this matters
SameSite=None requires Secure: modern browsers reject a SameSite=None cookie that is not also Secure, so the cookie is silently dropped. Worse, if anything does accept it, the cookie is a cross-site cookie travelling over plaintext. It can be sent over plain HTTP and offers no CSRF protection at all.
Fix: add secure: true, and only use SameSite=None when you genuinely need the cookie sent on cross-site requests; otherwise prefer SameSite=Strict or Lax. See CWE-1275.
Suppressing this rule
If a finding is a genuine false positive, scope the suppression to the exact line and leave a reason, never disable the rule project-wide. Disable directives are line-scoped by design.
// oauthlint-disable-next-line auth.cookie.samesite-none-insecure -- <reason>