title: org.openqa.selenium.InvalidCookieDomainException: Document is cookie-averse using Selenium and WebDriver
body: <p>I'm trying to push cookies to selenium firefox webdriver stored from previous session, but I got error:</p>
  
  <pre><code>org.openqa.selenium.InvalidCookieDomainException: Document is cookie-averse
  </code></pre>
  
  <p>I read this <a href="https://html.spec.whatwg.org/multipage/dom.html#cookie-averse-document-object" rel="noreferrer">HTML Standard Cookie-averse</a> and understand nothing at all.</p>
  
  <p>So, question is how to push cookies to webdriver session stored from previous one?</p>