I have a problem using an API that I can not make changes to, it happens as follows, I have a servlet that extends from a security library, this library is in charge of logging, allow the methods to be used in the servlet , etc.
When I go through the browser, I first request the servlet to login, and right after that I request another method from my servlet, which returns information from any database. Everything returns correctly, but doing so from Angular 2 changes the thing, I log in normally and when I request the data it returns me a message, as if I had not logged in.
It seems to me that the problem is that http.get () of angular 2, performs the requisitions and soon afterwards dies completely, although the HttpService is an injectable service.
Is there a way to create a single container without losing the login session I made earlier?