CookieJar.setCookieWithFirstParty

Adds @cookie to @jar, exactly as though it had appeared in a Set-Cookie header returned from a request to @uri. @first_party will be used to reject cookies coming from third party resources in case such a security policy is set in the @jar.

class CookieJar
void
setCookieWithFirstParty

Parameters

uri URI

the URI setting the cookie

firstParty URI

the URI for the main document

the stringified cookie to set

Meta

Since

2.30