Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

correctness.response_cookie_type

A warn rule, scope workflow. A response cookie attribute is a literal of the wrong type, so the cookie is always dropped.

Synopsis

$ orion-server clippy ./definitions
warn[correctness.response_cookie_type] a response cookie attribute is a literal of the wrong type, so the cookie is always dropped

Description

A secure or http_only that is a literal non-boolean, or a max_age that is a literal non-integer, in a mapping to data._orion.response.cookies. The response builder refuses the value and drops the cookie, while the request still answers with its declared status. Coercing the string "false" to true would be worse. A dropped session cookie therefore presents to a browser exactly like the browser having refused it.

Caveats

Silent when the value is an expression, which can be either type per request. Those are reported at runtime in the response envelope’s errors and in orion_response_drops_total.

Last verified 14 September 2026