在Firefox中访问第三方Cookie [英] Accessing third party cookies in Firefox

查看:74
本文介绍了在Firefox中访问第三方Cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用iframe方法在这里构建一个Facebook应用程序.为了使应用程序正常运行,它需要在iframe中设置Cookie.

We're building a Facebook application here at work, using the iframe method. For the application to work, it needs to set cookies from within the iframe.

Safari默认情况下禁用了第三方cookie,因此我们当前将整个浏览器重定向到我们的服务器,设置跟踪会话所需的cookie,然后再次重定向回Facebook应用程序页面.

Safari has third party cookies disabled by default, so we are currently redirecting the whole browser to our server, set the cookie required to track the session, and then redirect back to the Facebook application page again.

此方法行之有效.除非使用Firefox的人来手动禁用了第三方Cookie,否则Firefox默认将其启用.Safari可以正常工作,因为它不允许您从iframe设置cookie,但是您可以阅读它们.另一方面,Firefox不允许您读取Cookie,因此变得不可能.

This method works, and works good. Unless someone with Firefox comes along who has manually disabled third party cookies, as Firefox defaults to having them enabled. Safari works cause it doesn't let you set cookies from an iframe, but you can read them. Firefox on the other hand, doesn't let you read the cookies, and hence it becomes kind of impossible.

在禁用第三方Cookie的情况下,Firefox是否能够将Firefox发送Cookie到外部服务器上的iframe?

Is there anyway to get Firefox to send cookies to an iframe on an external server when third party cookies are disabled?

推荐答案

在禁用第三方Cookie的情况下,Firefox是否能够将Firefox发送Cookie到外部服务器上的iframe?

Is there anyway to get Firefox to send cookies to an iframe on an external server when third party cookies are disabled?

不.那很好.禁用第三方Cookie应当禁用.

No. And that is good. Disabling 3rd party cookies should disable them.

这篇关于在Firefox中访问第三方Cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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