The cookie attribute represents the cookies of the resource identified by the document’s URL.. A Document object that falls into one of the following conditions is a cookie-averse Document object:. A Document object whose browsing context is null.; A Document whose URL’s scheme is not an HTTP(S) scheme.. On getting, if the document is a cookie-averse Document object, then the user agent must …