如何配置在Azure上P3P策略 [英] How to configure p3p policy on Azure
问题描述
我们的应用程序是在Facebook中主持。如你所知,Facebook的承载第三方应用程序iframe中。你也可以知道,如果一个网站中的iframe和父网站上是不同的域,然后第三方(跨域)的Cookie没有做一个紧凑的政策将在IE被阻止介质隐私设置。因此,人们需要配置一个紧凑P3P策略的网站。我一般的问题是:什么是做到这一点在Azure上的推荐方式。我想AP preciate有这方面的单证。我看了又看,只能找到星星点点不为我工作。
请注意,我已经创建了P3P策略文件(HTML,XML,紧凑和参考文件)。所以基本上我觉得我有所有我需要的作品。我只是缺少上的指示如何启用它们。
此外子问题:
我必须在每次请求页面时服务于紧凑P3P策略作为响应头的一部分?
或
我可以配置在Azure上的IIS设置标题的整个网站?我发现这个链接
的http:// richardprodger .word press.com / 2011/04/06 / P3P和-IIS-在蔚蓝/
这是有关如何创建并运行在Azure上的appcommand会谈。然而,当我做到这一点,并尝试部署,我的角色实例不会开始。他们挂无限。
亲切的问候,
阿尔奇尔
在另一个站点(social.msdn.microsoft.com)有人提出了以下职位:
相反的启动配置IIS的
任务中,我们可以写在设置
在我们的Web角色的web.config文件。该
设置我用来解决P3P问题是:
块引用><结构>
< system.webServer>
< httpProtocol>
< customHeaders>
<添加名称=P3PVALUE =CP =安培; QUOT; IDC DSP COR ADM德维戴氏PSA PSD IVAi IVDI CONI他对我们IND CNT和放大器; QUOT;/>
< / customHeaders>
< / httpProtocol>
< /system.webServer>
< /结构>
的P3P头值从报价
<一href=\"http://adamyoung.net/IE-Blocking-iFrame-Cookies\">http://adamyoung.net/IE-Blocking-iFrame-Cookies.
请尝试,如果你的作品或没有。
块引用>希望这有助于。
Our app is hosted in Facebook. As you know, Facebook hosts third party app in an IFrame. You may also know that if a web site in an Iframe, and parent website is on a different domain, then 3rd party (cross domain) cookies that do not have a compact policy will be blocked in IE for Medium privacy settings. So one needs to configure a compact p3p policy for a web site. My general question is: What is the recommended way to do this on Azure. I would appreciate any documentations on this. I looked and looked and can only find bits and pieces that do not work for me.
Note, I have already created the p3p policy files (html, xml, compact and reference files). So basically I think I have all the pieces that I need. I am just missing the directions on how to enable them.
Further subquestions:
Do I have to serve the compact p3p policy as part of the response header every time a page is requested?
or
Can I configure the IIS on Azure to set the headers for the entire site? I found this link
http://richardprodger.wordpress.com/2011/04/06/p3p-and-iis-in-azure/
that talks about how to create and run an appcommand on Azure. However, when I do it and try to deploy, my role instances never start. They hang infinitely.
Kind regards,
Archil
解决方案On another site (social.msdn.microsoft.com) someone made the following post:
Instead of configuring IIS in startup task, we can write the setting in the web.config file in our web role. The setting I used to resolve p3p issue is:
<configuration> <system.webServer> <httpProtocol> <customHeaders> <add name="p3p" value="CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT""/> </customHeaders> </httpProtocol> </system.webServer> </configuration>
The p3p header value is quoted from http://adamyoung.net/IE-Blocking-iFrame-Cookies. Please try if it works for you or not.
Hope this helps.
这篇关于如何配置在Azure上P3P策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!