Answer the question
In order to leave comments, you need to log in
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);
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question