title: Limiting http interceptor to specific domain
body: <p>I'm busy in building a little backoffice Web client in Angular.JS which directly talks to my API. For authentication I use OAUTH2 where I use an http interceptor to include the access token to a request. But, the interceptor is global, so not only my requests/responses to the API are checked, but also any other http call, like static html and templates.</p>
  
  <p>I would like to bind the interceptor to my API calls only.</p>
  
  <p>Would this be possible without a nasty domain-string-comparing-if-statement in the interceptor?</p>