简体   繁体   中英

How to read cookie from another cross domain url in javascript

I have a cross domain url in which if I access directly, I can see cookies(from Resources->Cookies in chrome browser).

I have created a separate HTML file in which whenever the HTML file page loads, I need to get the cookie from that url.

Is it possible through javascript?

You can not read the cookies from cross domain url, unless the website has explicitly allowed it. (that is very rare)

Generally You can not do it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM