59791df248
Cookies were sent without Secure flag outside of production (NODE_ENV check). New logic: secure=true by default; set SESSION_SECURE=false in .env to allow HTTP explicitly (local dev without reverse proxy). Affects session cookie, CSRF cookie in login handler, and CSRF middleware. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>