set_cookie_with_first_party


Description:

public void set_cookie_with_first_party (Uri uri, Uri first_party, string cookie)

Adds cookie to this, 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 this.

Parameters:

this

a CookieJar

uri

the URI setting the cookie

first_party

the URI for the main document

cookie

the stringified cookie to set