GreysonKind
@GreysonKind

Angular $http, как получить Request Cookies?

Можно ли как то получить пришедшие куки "DomAuthSessId"?
Запрос:
$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
  • Вопрос задан
  • 707 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы