I have a spa app. And there is an authorization request /Api/Login on axios, which should return a token in cookies to JWT. HttpOnly protected cookies.

Is there such a possibility that the next axios request was with these cookies, which were returned in the authorization request?

    1 answer 1

    The solution was very simple.
    If, in any response from the XMLHttpRequest request, cookie returned, they are set to the whole page, and then automatically transmitted to any subsequent XMLHttpRequest .
    Nothing special to do this.