We are working on a RESTful Webservice with AngularJS and Java Servlets. When a user logs in, our database sends the Set-Cookie header to the frontend. In Angular, we access the header through $cookies (ngCookie-module) and install it. 
Now, when the user logs in, he can, for example, delete some things. Therefore, the external interface sends a GET request to the server. Since we work in different domains, we need to set some CORS headers, and Angular executes an OPTIONS request before the actual GET request:
OPTIONS request: 
GET Request 
We do this in Angular through the $ http module, but it just wonβt send a cookie containing JSESSIONID .
How can I enable Angular to send cookies?
Tim Dau Jun 12 '13 at 11:52 2013-06-12 11:52
source share