I am currently developing a REST API with Spring Boot for an Angular2 frontend app.
I use Spring Security to manage user authentification but I need to store some in
It seems to be an angular2 issue which doesn't send cookie; I set this code in my constructor before calling my REST api :
constructor(private _http: Http) {
let _build = (<any>_http)._backend._browserXHR.build;
(<any>_http)._backend._browserXHR.build = () => {
let _xhr = _build();
_xhr.withCredentials = true;
return _xhr;
};
}
And now my JSESSIONID is sending in every request.