How to get cookie received from server?

Hello!

After a request to the server it returns me the data and writes the authToken cookie. The first who came to mind options I couldn't get this token. Question: it is generally possible to obtain or not?

5cf6a13866280964956329.png
March 23rd 20 at 19:05
1 answer
March 23rd 20 at 19:07
Solution
https://learn.javascript.ru/cookie you Can, if not should the HttpOnly flag, which means that cookie is not available in the page code, but only for the server. Well, the domain of the server and the page must match.
Got it, thanks - luisa.Lynch commented on March 23rd 20 at 19:10

Find more questions by tags JavaScript