How would I grab the cookies from another URL in Javascript through document.cookie?
For example, the browser is at http://google.com/, and I want it to grab the cookies stored for http://stackoverflow.com.
How would I grab the cookies from another URL in Javascript through document.cookie?
For example, the browser is at http://google.com/, and I want it to grab the cookies stored for http://stackoverflow.com.
You won't be able to grab cookies for other websites, that's against browsers security policies.