Skip to main content

secure_cookies

Function secure_cookies 

Source
pub fn secure_cookies() -> bool
Expand description

Whether auth cookies should carry the Secure attribute (sent only over HTTPS). Defaults to true; set INSECURE_COOKIES=1 for local plain-HTTP development. Bearer cookies (access/refresh tokens) must be Secure in production so they can’t leak over a downgraded HTTP request.