AcpAffinityCookieDomainPolicy typedef

AcpAffinityCookieDomainPolicy = bool Function(Uri responseUri, String cookieDomain)

Decides whether an explicit server Domain attribute may widen cookie scope beyond the response origin.

Implementations should use a current public-suffix list before allowing parent domains. Throwing rejects the cookie.

Implementation

typedef AcpAffinityCookieDomainPolicy =
    bool Function(Uri responseUri, String cookieDomain);