title: Selenium - Basic Authentication via url
body: <p>In my <code>Selenium-Test</code> (with <code>chromedriver-2.24</code>) I'm trying to access my webpage via basic authentication with the following statement: </p>
  
  <pre><code>WebDriver driver  = ...;
  driver.get("http://admin:admin@localhost:8080/project/");
  </code></pre>
  
  <p>But Google Chrome gives me the following warning in the console: </p>
  
  <blockquote>
    <p>[Deprecation] Subresource requests whose URLs contain embedded credentials (e.g. <code>https://user:pass@host/</code>) are blocked. See <a href="https://www.chromestatus.com/feature/5669008342777856" rel="noreferrer">https://www.chromestatus.com/feature/5669008342777856</a> for more details.</p>
  </blockquote>
  
  <p>In the tagged link is mentioned that the support was dropped:</p>
  
  <blockquote>
    <p>Drop support for embedded credentials in subresource requests. (removed)</p>
  </blockquote>
  
  <p>My question now is, is there an other way to basic-authenticate from Selenium?</p>
  
  <p><strong><em>NOTE</em></strong>: this has not helped: <a href="https://stackoverflow.com/questions/33956795/how-to-handle-http-basic-auth-headers-in-selenium-webdriver-using-java">How to Handle HTTP Basic Auth headers in Selenium Webdriver using Java ?</a></p>