The cookie breaks the rules of its __Host- or __Secure- prefix.
COOKIE_PREFIX_INVALID · Severity: Error
- Error
COOKIE_PREFIX_INVALIDThe cookie breaks the rules of its __Host- or __Secure- prefix.
A cookie named __Secure-... must have Secure. A cookie named __Host-... must have Secure, Path=/ and no Domain. Browsers reject a cookie that breaks the rules, so it is never set. The evidence names the broken rule.
Recommendation: Add or remove the attributes named in the evidence.
Reported by
Available through the API
Related findings
- Error
COOKIE_INVALIDThe Set-Cookie value has no valid name=value pair. - Info
COOKIE_LONG_LIFETIMEThe cookie asks to live longer than the 400 days browsers allow. - Info
COOKIE_MULTIPLEThe text holds more than one cookie; only the first was checked. - Warning
COOKIE_NOT_SECUREThe HTTPS site sets a cookie without the Secure attribute. - Info
COOKIE_NO_HTTPONLYThe cookie can be read by scripts (no HttpOnly attribute). - Info
COOKIE_NO_SAMESITEThe cookie has no SameSite attribute.