0
I have a problem using an API to which I can not make changes, it happens as follows, I have a Folder extending from a security library, that library is in charge of making the logins, allow the use of methods in Servlet, etc.
When I go through the browser, I first request Servlet for login, and soon after that I request another method of my Servlet, which returns information from any database. Everything returns correctly, but doing this of Angular 2 the thing changes, 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() at angular 2 performs the requests and then dies completely, even though Httpservice is an injectable service.
Is there any way to create a single container without losing the login session I previously did?
Did you ever check if a cookie is saved by the browser ? NOTE: Try to play the login with some request tool like Postman.
– André Roggeri Campos
Actually, I haven’t seen it before but now when logging in via browser a 'JSESSIONID' has been saved. I’m downloading Postman now to check this. But I will try to inject this cookie into the next request.
– Ricardo