我的网站如何删除另一个网站的Cookie? [英] How can my website delete another site's cookies?

查看:190
本文介绍了我的网站如何删除另一个网站的Cookie?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从我的网站上的使用者中移除其他网站的Cookie。有任何方法来访问来自不同的域的cookie。

I'd like to remove the cookies of another site from users on my site. Is there any way to access the cookies from different domains.

推荐答案

否,同源政策禁止。您只能查看或设置您设置的,对当前网址有效的Cookie。

No, the same origin policy forbids that. You can only view or set cookies that you set and that are valid for the current URL.

这篇关于我的网站如何删除另一个网站的Cookie?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆