title: Protractor Behind a corporate proxy (angular-cli)
body: <p>I have a very simple e2e test running on a centos VM that has been running fine. I am getting the following error - </p>
  
  <pre><code>webpack: Compiled successfully.
  [15:22:42] I/launcher - Running 1 instances of WebDriver
  [15:22:42] I/direct - Using ChromeDriver directly...
  Jasmine started
  A Jasmine spec timed out. Resetting the WebDriver Control Flow.
  A Jasmine spec timed out. Resetting the WebDriver Control Flow.
  
    my-app App
       ✗ Should default to login screen
        - Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
        at ontimeout (timers.js:386:11)
        at tryOnTimeout (timers.js:250:5)
    - Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
        at ontimeout (timers.js:386:11)
        at tryOnTimeout (timers.js:250:5)
  </code></pre>
  
  <p>I thought it was due to issues with <code>.waitForAngular()</code> at first, but after stepping back through commits it seems the issue occurred after adding a custom font (making a call outside of our corporate network) - <code>@import url('https://fonts.googleapis.com/css?family=Raleway:400,500,700');</code> and removing this one line confirms the issue</p>
  
  <p>I can configure the proxy for protractor following this github issue - <a href="https://github.com/angular/protractor/issues/124" rel="nofollow noreferrer">https://github.com/angular/protractor/issues/124</a></p>
  
  <p>However it then seems like EVERY call is made via the proxy, including to localhost and now it can not find the Angular app on the localhost.</p>
  
  <p>How to I tell protractor to fetch external resources via the proxy, anything on localhost should ignore the proxy?</p>