![](/img/trans.png)
[英]Yammer Embed won't complete load: JavaScript error in IE8 and IE9
[英]“Security Risk” Error Message in IE9 with Yammer Embed Feed
我有一个使用Yammer“ embedFeed” API嵌入Yammer feed的应用程序。 该应用程序托管在SSL(通过HTTPS)下。
在运行IE9的PC上,IE会显示一个对话框,其中显示: “此页面正在访问不受其控制的信息。这会带来安全风险。是否要继续?”
显示Yammer Embed的代码非常简单,如下所示。
<!-- This is included in the <HEAD> tag -->
<script type="text/javascript" src="https://c64.assets-yammer.com/assets/platform_embed.js"></script>
<!-- This is included at the bottom of the page -->
<script>
yam.connect.embedFeed({
container: '#YammerContent',
network: 'domain.com'
});
</script>
在其他PC上的Firefox,Chrome和IE11中,一切正常。
我认为此问题与Internet选项中的IE9安全设置有关。 但是,我还没有弄清楚可能是什么设置。
关于解决此问题,我有以下问题:
这是IE9中的CORS(跨源资源共享)问题。 请确保所有需要在受信任站点中添加的URL都存在,以供参考https://technet.microsoft.com/zh-cn/library/hh373144.aspx 。
以下是该指南的Yammer部分的摘要:
*.assets-yammer.com
ajax.googleapis.com^
*.cloudfront.net^
*.crocodoc.com^
*.yammer.com
*.yammerusercontent.com
^These URLs are for third party services used by Yammer to provide the ability of viewing documents, videos and images uploaded by your users into Yammer. These URLs are not required to be on the allow list if your organization is administratively disabling the ability of uploading files into Yammer
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.