I've created an AngularJS application that loads images from an OAuth secured backend. My OAuth library is configured by adding an extra interceptor to the Angular $httpProvider to add the correct authentication header.
My source code in my HTML template looks like this:
<img ng-src="{{ '/users/1/images/' + imageId }}">
My problem is that the http request that is created by the ngSrc directive is ignored by the $http implementation, which results in a request with the wrong authentication.
The normal API calls function correct (the ones invoked by my controllers/services by using $http and $resource directly).