pub enum CookieBlockedReason {
Show 16 variants
SecureOnly,
NotOnPath,
DomainMismatch,
SameSiteStrict,
SameSiteLax,
SameSiteUnspecifiedTreatedAsLax,
SameSiteNoneInsecure,
UserPreferences,
ThirdPartyPhaseout,
ThirdPartyBlockedInFirstPartySet,
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.
ThirdPartyPhaseout
The cookie was blocked due to third-party cookie phaseout.
ThirdPartyBlockedInFirstPartySet
The cookie was blocked by third-party cookie blocking between sites in the same First-Party Set.
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 initiated 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<CookieBlockedReason, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CookieBlockedReason, <__D as Deserializer<'de>>::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§impl Serialize for CookieBlockedReason
impl Serialize for CookieBlockedReason
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for CookieBlockedReason
impl StructuralPartialEq for CookieBlockedReason
Auto Trait Implementations§
impl Freeze for CookieBlockedReason
impl RefUnwindSafe for CookieBlockedReason
impl Send for CookieBlockedReason
impl Sync for CookieBlockedReason
impl Unpin for CookieBlockedReason
impl UnwindSafe for CookieBlockedReason
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more