title: How to create a org.openqa.selenium.Cookie with the isSecure flag to false
body: <p>When creating a cookie and defining that I want the isSecure field to be false:</p>
  
  <pre><code> driver.manage().addCookie(new Cookie(cookie.getName(), cookie.getValue(), cookie.getDomain(), cookie.getPath(), cookie.getExpiry(), false));
  </code></pre>
  
  <p>it is Selenium, actually WebDriver sets the parameter to true:</p>
  
  <pre><code>driver.manage().getCookies().forEach(cookie -&gt; {
       System.out.println("Adding cookie isSecure: " + cookie.isSecure());
  }); //prints Added cookie isSecure: true
  </code></pre>
  
  <p>I use selenium version:</p>
  
  <pre><code> &lt;dependency&gt;
          &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
          &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
          &lt;version&gt;3.141.59&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>I don't know why this happens.
  Is there any solution for this?</p>