On a web page, I need all the cookies' name and value. The problem is that, for example, on Google Chrome, I can see cookie information using Developers Tools > Resources > Cookies, but it returns an empty string when I type "document.cookie" on the console.
Is there a 'javascript way' to display the coookie information as it is seen in the Resources tab?