title: AngularJS - Unknown provider configuring $httpProvider
body: <p>In the following code example:</p>
  
  <pre><code>myApp.config(['$httpProvider', function($httpProvider, $cookieStore) {
  
      $httpProvider.defaults.withCredentials = true;
  
      $httpProvider.defaults.headers.get['Authorization'] = 'Basic '+ $cookieStore.get('myToken');
  
      return JSON.stringify(data);
  
  }]);
  </code></pre>
  
  <p>I get an angularjs error like 'Unknown provider $cookieStore'.</p>
  
  <p>'myApp' has dependenciy and 'ngCookies' and angular-cookies.min.js is laoded, so what's wrong with that code ?</p>
  
  <p>Is that fact that i'm doing this in .config ?</p>