domainMatches

Checks if the @cookie's domain and @host match.

The domains match if @cookie should be sent when making a request to @host, or that @cookie should be accepted when receiving a response from @host.

Return

true if the domains match, false otherwise

Parameters

host

a URI