so I have this code
$http({
'method': 'GET',
'url': 'http://www.example.com',
'withCredentials': true,
headers: {
'Content-type': 'application/json'
}
}).
success(function (data, response, headers, status) {
});
This will return with the JSON array of records, well the http request is using credentials which is a JSESSIONID that use for every consecutive calls to the backend.
The problem is, it works on firefox but doesn't on chrome. So firefox does send the cookies containing the JSESSIONID but not chrome while I already set the withCredentials
to true
Why does this happen?