CookieJar.setCookieWithFirstParty

void setCookieWithFirstParty(glib.uri.Uri uri, glib.uri.Uri firstParty, string cookie)

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.

Parameters

urithe URI setting the cookie
firstPartythe URI for the main document
cookiethe stringified cookie to set