title: How to handle HTTP Basic authentication on Chrome by Protractor?
body: <p>Can someone help me handle "HTTP basic</p>
  
  <p>authentication prompt" on Chrome?</p>
  
  <p>I can't access the authentication for our staging environment by the regular </p>
  
  <p>method (<a href="http://user:password@domain.com" rel="nofollow">http://user:password@domain.com</a>).</p>
  
  <p>Do you have any idea how can handle it?<br>
  .
  .
  .</p>
  
  <p><strong>Technical info:</strong></p>
  
  <p>Programming lang: JavaScript</p>
  
  <p>Framework: Jasmine JS</p>
  
  <p>Browser: Google Chrome (latest)</p>
  
  <p>Platforms: Selenium Webdriver, Node.JS</p>
  
  <p>Runner: Protractor</p>
  
  <hr>
  
  <h2>My code is below:</h2>
  
  <pre><code>//First Demo for E2E Automation testing by Protractor for AngularJS
  
  describe ('Do this before every test case', function() {
  beforeEach(function() {
      browser.get("http://user:password@domain.com');
      expect(browser.getCurrentUrl()).toEqual("http://wwww.meet2know.com/");
  });
  
  var login = require ('../login.js');
  });
  </code></pre>