pub enum CookieBlockedReason {
Show 14 variants
SecureOnly,
NotOnPath,
DomainMismatch,
SameSiteStrict,
SameSiteLax,
SameSiteUnspecifiedTreatedAsLax,
SameSiteNoneInsecure,
UserPreferences,
UnknownError,
SchemefulSameSiteStrict,
SchemefulSameSiteLax,
SchemefulSameSiteUnspecifiedTreatedAsLax,
SamePartyFromCrossPartyContext,
NameValuePairExceedsMaxSize,
}
Expand description
Types of reasons why a cookie may not be sent with a request.
Variants§
SecureOnly
The cookie had the “Secure” attribute and the connection was not secure.
NotOnPath
The cookie’s path was not within the request url’s path.
DomainMismatch
The cookie’s domain is not configured to match the request url’s domain, even though they share a common TLD+1 (TLD+1 of foo.bar.example.com is example.com).
SameSiteStrict
The cookie had the “SameSite=Strict” attribute and the request was made on on a different site. This includes navigation requests initiated by other sites.
SameSiteLax
The cookie had the “SameSite=Lax” attribute and the request was made on a different site. This does not include navigation requests initiated by other sites.
SameSiteUnspecifiedTreatedAsLax
The cookie didn’t specify a SameSite attribute when it was stored and was defaulted to “SameSite=Lax” and broke the same rules specified in the SameSiteLax value. The cookie had to have been set with “SameSite=None” to enable third-party usage.
SameSiteNoneInsecure
The cookie had the “SameSite=None” attribute and the connection was not secure. Cookies without SameSite restrictions must be sent over a secure connection.
UserPreferences
The cookie was not sent due to user preferences.
UnknownError
An unknown error was encountered when trying to send this cookie.
SchemefulSameSiteStrict
The cookie had the “SameSite=Strict” attribute but came from a response with the same registrable domain but a different scheme. This includes navigation requests intitiated by other origins. This is the “Schemeful Same-Site” version of the blocked reason.
SchemefulSameSiteLax
The cookie had the “SameSite=Lax” attribute but came from a response with the same registrable domain but a different scheme. This is the “Schemeful Same-Site” version of the blocked reason.
SchemefulSameSiteUnspecifiedTreatedAsLax
The cookie didn’t specify a “SameSite” attribute and was defaulted to “SameSite=Lax” and broke the same rules specified in the SchemefulSameSiteLax value. This is the “Schemeful Same-Site” version of the blocked reason.
SamePartyFromCrossPartyContext
The cookie had the “SameParty” attribute and the request was made from a cross-party context.
NameValuePairExceedsMaxSize
The cookie’s name/value pair size exceeded the size limit defined in RFC6265bis.
Trait Implementations§
source§impl AsRef<str> for CookieBlockedReason
impl AsRef<str> for CookieBlockedReason
source§impl Clone for CookieBlockedReason
impl Clone for CookieBlockedReason
source§fn clone(&self) -> CookieBlockedReason
fn clone(&self) -> CookieBlockedReason
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CookieBlockedReason
impl Debug for CookieBlockedReason
source§impl<'de> Deserialize<'de> for CookieBlockedReason
impl<'de> Deserialize<'de> for CookieBlockedReason
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl FromStr for CookieBlockedReason
impl FromStr for CookieBlockedReason
source§impl Hash for CookieBlockedReason
impl Hash for CookieBlockedReason
source§impl PartialEq for CookieBlockedReason
impl PartialEq for CookieBlockedReason
source§fn eq(&self, other: &CookieBlockedReason) -> bool
fn eq(&self, other: &CookieBlockedReason) -> bool
self
and other
values to be equal, and is used
by ==
.