document.cookie or $cookies returning empty values intermittently in IE

133 views Asked by At

In one of my applications observed that "document.cookie" or $cookies is returning empty values and i am unable to access cookies in code even though cookies are visible in the browser. Are there any issues that are already identified in IE browser. The same code is always working fine in Chrome/firefox. Please suggest

Below is the code which we use in our application to read cookies and set it to the request header while making rest calls via angular

var x=$cookies.get(csrftoken);
request.set header({csrf_token :x})

The above code was running without issues but after some time we observed that $cookies is returning "" even when cookies are available in the browser.

we also tried document.cookie which is also giving the same result.

The issue is only in IE and it is not continuous and mostly intermittent.

0

There are 0 answers