title: How to start Chrome headless with user-data-dir flag with ChromeDriver version 83.0.4103.39 and Selenium
body: <p><strong>Code</strong></p>
  <pre><code>ChromeOptions options = new ChromeOptions();
  
  options.AddArguments(&quot;--headless&quot;);
  options.AddArguments(&quot;--disable-gpu&quot;);
  options.AddArguments(&quot;--disable-software-rasterizer&quot;);
  options.AddArguments(&quot;--user-data-dir=/profiles/&quot; + profile);
  options.AddArguments(&quot;--disable-software-rasterizer&quot;);
  options.AddArguments(&quot;--window-size=1920x1080&quot;);
  options.AddArguments(&quot;--disable-extensions&quot;);
  options.AddArguments(&quot;--disable-plugins-discovery&quot;);
  
  IWebDriver webDriver = new ChromeDriver(options);
  WebDriverWait wait = new WebDriverWait(webDriver, TimeSpan.FromSeconds(15));
  webDriver.Navigate().GoToUrl(@&quot;someUrl&quot;); ---&gt; Here code stucks
  
  </code></pre>
  <p><strong>Error:</strong></p>
  <blockquote>
  <p>OpenQA.Selenium.WebDriverException: 'The HTTP request to the remote
  WebDriver server for URL http://localhost:64225/session timed out
  after 60 seconds.'</p>
  </blockquote>
  <p><strong>I also tried</strong></p>
  <pre><code>options.AddArguments(&quot;--disable-dev-shm-usage&quot;);
  options.AddArguments(&quot;--no-sandbox&quot;);
  </code></pre>
  <p><strong>Console output</strong></p>
  <pre><code>&quot;A cookie associated with a cross-site resource at 
  &lt;SomeSite&gt; was set without the `SameSite` attribute. 
  A future release of Chrome will only deliver cookies 
  with cross-site requests if they are set with 
  `SameSite=None` and `Secure`. You can review cookies 
  in developer tools under Application&gt;Storage&gt;Cookies 
  and see more details at 
  https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.&quot;, 
  source: &lt;someURL&gt; (0)
  </code></pre>