Yammer Embed Feed可在IE和Firefox中使用,但不能在Chrome中使用,从而导致401未经授权 [英] Yammer Embed Feed works in IE and Firefox but not in Chrome, gives 401 unauthorized
本文介绍了Yammer Embed Feed可在IE和Firefox中使用,但不能在Chrome中使用,从而导致401未经授权的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
颂歌:
<div id="embedded-feed" style="height: 99%; width: 100%; overflow: auto"></div>
<script src="https://assets.yammer.com/assets/platform_embed.js"></script>
<script>yam.connect.embedFeed({
container: "#embedded-feed",
network: "tcs.com",
feedType: "group",
feedId: "all"
});
</script>
代码在IE和FireFox中工作正常,但在Chrome中显示401未经授权
Code works fine in IE and FireFox but in Chrome gives 401 Unauthorized
控制台错误: GET https://www.yammer.com/tr8n/api/v1/language/translate?batch = true& source = yamjs 401(未经授权)
Console Error : GET https://www.yammer.com/tr8n/api/v1/language/translate?batch=true&source=yamjs 401 (Unauthorized)
但是,在新标签页中打开链接上方的链接会给出适当的输出结果
However opening the link above link in a new tab gives proper ouput
推荐答案
这可能是因为您已在某个阶段禁用了Google Chrome浏览器中的第三方Cookie-我也遇到了同样的问题.
This is likely because you've disabled 3rd party cookies on Google Chrome at some stage -- I had the same problem.
- 浏览至chrome://settings/content
- 取消选中阻止第三方cookie和网站数据"复选框
- 重新加载页面,Yammer嵌入程序可能会开始工作
这篇关于Yammer Embed Feed可在IE和Firefox中使用,但不能在Chrome中使用,从而导致401未经授权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文