Cookies without protective flags
WarningQuick fix
Your pages set cookies without the Secure flag, or session cookies without HttpOnly.
Why it matters
A cookie without Secure is also sent over unencrypted connections, where it can be read. A session cookie without HttpOnly can be stolen by any injected script and used to take over the visitor's login.
How to fix it
- 1
Set the Secure flag on every cookie of an HTTPS site.
- 2
Set HttpOnly on cookies that only the server needs, such as session and login cookies.
- 3
Add SameSite=Lax (or Strict) to limit cross-site use.
- How serious is it?
- Warning
- Issues worth fixing once the errors are handled.
- How much work is it?
- Quick fix
- Usually minutes of work.
Further reading: MDN: Using HTTP cookies
Does your site have this issue?
Check a page for free, or create an account to test your whole website.