微软Dynamics CRM Online中使用Windows Azure的托管网页+的IFrame + X帧选项 [英] Microsoft Dynamics CRM Online with a Windows Azure Hosted Webpage + IFrame + X-Frame-Options

查看:246
本文介绍了微软Dynamics CRM Online中使用Windows Azure的托管网页+的IFrame + X帧选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用Microsoft Dynamics CRM Online中,其中的Windows Azure承载显示在Microsoft Dynamics CRM Web应用程序的IFRAME定制网页。

I am trying to use Microsoft Dynamics CRM Online where Windows Azure hosts a custom webpage that is displayed in an IFRAME of the Microsoft Dynamics CRM web application.

我读<一个href=\"http://msdn.microsoft.com/en-us/library/gg509061\">http://msdn.microsoft.com/en-us/library/gg509061 (微软Dynamics CRM Online中使用Windows Azure的托管网页)也跟着在<一的说明href=\"http://social.technet.microsoft.com/wiki/contents/articles/2590.aspx\">http://social.technet.microsoft.com/wiki/contents/articles/2590.aspx (安全的Windows Azure Web角色的ASP.NET Web应用程序使用访问控制服务V2.0)

I have read http://msdn.microsoft.com/en-us/library/gg509061 (Microsoft Dynamics CRM Online with a Windows Azure Hosted Webpage) and also followed the instructions on http://social.technet.microsoft.com/wiki/contents/articles/2590.aspx (Secure Windows Azure Web Role ASP.NET Web Application Using Access Control Service v2.0)

我现在有一个Windows Azure的网页显示一个Windows Live ID屏幕登录。

I now have a Windows Azure Webpage that displays a Windows Live Id screen to log in.

问题是,当我把这个成动态的IFrame,我得到以下内容:

The problem is that when I place this into an IFrame in Dynamics, I get the following:

此内容不能显示在一帧
为了帮助保护您进入这个网站的信息的安全性,这些内容的发布者不允许它在一个框架中显示。

This content cannot be displayed in a frame To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame.

这是由于HTTP头X帧选项:拒绝的的Windows Live ID登录preventing从Internet Explorer在一帧显示页面服务。这甚至当我已经登录到Windows Live ID和网页试图验证我的发生。

This is due to the HTTP header of "X-Frame-Options:deny" served by the Windows Live Id login preventing Internet Explorer from displaying the page in a frame. This even happens when I am already logged into Windows Live Id and the webpage tries to authenticate me.

所以,这是怎么打算的工作,作为微软的第一页意味着它可以做到微软Dynamics CRM Online中使用Windows Azure的托管网页,并选择是否显示在IFRAME?

So how is this meant to work, as the first Microsoft page implies it can be done with "Microsoft Dynamics CRM Online with a Windows Azure Hosted Webpage" and optionally displayed in an IFRAME?

推荐答案

<一个href=\"http://blogs.msdn.com/b/devkeydet/archive/2013/01/14/crm-online-amp-windows-azure-improving-the-sso-experience.aspx\"相对=nofollow>这个帖子表明在新窗口中打开登录页面实现的一种变通方法。可以通过标准来完成 window.open(...),但如果你的用户要使用Outlook客户端,你必须通过一些额外的跳火圈由于嵌入式浏览器不与用户的默认浏览器共享会话数据。 (A为解决方法是使用 Xrm.Utility.openWebResource(...)而是与重定向到预期的页面自定义的HTML页面。)

This post suggests a workaround implemented by opening the sign-in page in a new window. That can be accomplished through standard window.open(...), but if your users are going to use the Outlook client, you'll have to jump through some extra hoops since the embedded browser does not share session data with the user's default browser. (A workaround for that is to use Xrm.Utility.openWebResource(...) instead, with a custom HTML page that redirects to the intended page.)

这篇关于微软Dynamics CRM Online中使用Windows Azure的托管网页+的IFrame + X帧选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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