title: Access to header information by $resource in AngularJS
body: <p>I send a request server-side by $resource which is inside my factory.
  In the return object there many information, but I'd like to have access to the authorization in the headers.
  I tried to print the returning object by console.log() but I dont see any headers and authorization in console. What should I do?</p>
  
  <pre><code>controllers.controller('ProfileSettingCtrl', function ($scope,User) {
       User.get({id: 'me'}, function(res) {
              console.log(res);
              $scope.profile = res;
          })
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/LNCCl.png" alt="enter image description here"></p>