J
J
Johnny2016-11-10 17:02:35
Angular
Johnny, 2016-11-10 17:02:35

Angular $http how to get Request Cookies?

Is it possible to somehow get the incoming cookies "DomAuthSessId"?
Request:

$http({
    method: 'POST',
    url: 'http://example.com/name.nsf?login',
    withCredentials: true,
    headers: {
        'Content-Type': 'text/plain'
    },
    data: {
        username: "demo",
        password: "demo",
        redirectto: "http://site.com/page"
    }
}).then(function successCallback(response) {
    // тут нигде нет:
    console.log($cookies.getAll());
    console.log(document.cookie);
    console.log(response.header());
}, function errorCallback(response) {
    console.log(response);
});

8d8255d3140345bdb646b03cc35262e7.jpg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question