IE,P3P,IFrame和阻止的Cookie(直到页面主机页面请求个人信息为止) [英] IE, P3P, IFrame and blocked cookies (works until page host page has personal information requested)

查看:353
本文介绍了IE,P3P,IFrame和阻止的Cookie(直到页面主机页面请求个人信息为止)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我公司有一个小部件插入购物车。我们遇到了一个问题,其中设置cookie在IE7不工作。这是因为我们是第三方,因为我们通过iframe嵌入到网站中。

My company has a little widget that plugs into shopping carts. We are running into a problem where setting cookies in IE7 is not working. This is happening because we are a 3rd party because we are embedded into the site via an iframe.

我已经看到几个帖子说,解决这个问题的方法是将P3P紧凑策略放入标头。如上所述:

I have seen several post that say the way to solve this problem is by putting a P3P compact policy in the header. As mentioned:

Cookie已阻止/未在Internet Explorer中的IFRAME中保存

我已验证我的P3P策略位于我的HTTP标头中。它实际上适用于购物车网站的第一页/步骤,但一旦有页面上的个人信息(如名称,地址,电话等),IE阻止我的网站和我的cookie。

I have verified that my P3P policy is in my HTTP header. And it actually works for the first page/step of the shopping cart site, but as soon as there is personal information on the page (like name, address, phone, etc), IE blocks my site and my cookie.

我试过几个不同的P3P策略,他们都不在同一个地方工作。我也使用IBM P3P工具生成我自己的特殊P3P策略,但它仍然不工作。

I have tried several different P3P policies and they all don't work at the same place. I have also used the IBM P3P tool to generate my own special P3P policy, but it still doesn't work.

我完全失去了。

推荐答案

这可能不会帮助任何人,但是我在这个墙上撞我的头几个星期。事实证明,IE 7将不允许设置第三方cookie,即使有效的P3P紧凑政策,如果Content-Type的HTML元标记在页面上具有不同的字符集声明与来自页面的iframe iframe。

This probably won't help anyone else, but I was banging my head against the wall for weeks over this one. It turns out that IE 7 won't allow 3rd-party cookies to be set, even with a valid P3P compact policy if the HTML meta tag for Content-Type has a different character set declaration on the page with the iframe from the page within the iframe.

这篇关于IE,P3P,IFrame和阻止的Cookie(直到页面主机页面请求个人信息为止)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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