Web Security · Client-side
Secure cookie attribute
Also known as: Secure flag, Cookie Secure flag
The Secure attribute restricts a cookie to secure transport, with browser-specific handling for localhost. It does not prevent script access. HttpOnly addresses that separate concern.