title: Send a cookie in http requests from frontend to backend with Angular
body: <p>I am developing a web-application using AngularJS.</p>
  
  <p>The application is realized with:</p>
  
  <ul>
  <li>a frontend, a component without logic, that simply queries a backend many times, in order to receive from it all the needed data;</li>
  <li>a backend, containing many RESTful services, and each of them returns data to the frontend (if the frontend calls it).</li>
  </ul>
  
  <p>In my frontend, in the main controller, I create a cookie using $cookieStore, in this way:</p>
  
  <pre><code>// Setting sessionID in the cookie
  $cookieStore.put('sessionID', $scope.contextData.sessionId);
  </code></pre>
  
  <p>Now, I want to send the information of this cookie to the generic backend service that I call. For example, one of my call has this form:</p>
  
  <pre><code>$http({
         method: "GET",
         url: urlBase + "/context/person"
      }).success(function(result, status, headers, config) {
          $scope.currentPerson = result;
      });
  </code></pre>
  
  <p>How can I send the cookie?
  Thanks in advance.</p>