Enum chromiumoxide_cdp::cdp::browser_protocol::network::CookieBlockedReason[][src]

pub enum CookieBlockedReason {
    SecureOnly,
    NotOnPath,
    DomainMismatch,
    SameSiteStrict,
    SameSiteLax,
    SameSiteUnspecifiedTreatedAsLax,
    SameSiteNoneInsecure,
    UserPreferences,
    UnknownError,
    SchemefulSameSiteStrict,
    SchemefulSameSiteLax,
    SchemefulSameSiteUnspecifiedTreatedAsLax,
}

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.

Trait Implementations

impl AsRef<str> for CookieBlockedReason[src]

impl Clone for CookieBlockedReason[src]

impl Debug for CookieBlockedReason[src]

impl<'de> Deserialize<'de> for CookieBlockedReason[src]

impl Eq for CookieBlockedReason[src]

impl FromStr for CookieBlockedReason[src]

type Err = String

The associated error which can be returned from parsing.

impl Hash for CookieBlockedReason[src]

impl PartialEq<CookieBlockedReason> for CookieBlockedReason[src]

impl Serialize for CookieBlockedReason[src]

impl StructuralEq for CookieBlockedReason[src]

impl StructuralPartialEq for CookieBlockedReason[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.