简体   繁体   中英

Set a cookie for a website with JavaScript

Theoretically I have a cookie for a different website (not my own). Is it possible to take the cookie I have at hand, and some how set it in my browser for a different website? This is possible with google chrome extensions, though if I were to do it strictly with javascript, (on a mobile device), how would I? Any Website references would be great aswell. Thanks!

不,仅使用客户端JavaScript是不可能的。

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