除非已登录Google帐户,否则不会显示嵌入式Google日历 [英] Embedded Google calendar not displaying unless logged into Google account

查看:333
本文介绍了除非已登录Google帐户,否则不会显示嵌入式Google日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用iframe在我正在制作的小型网站中嵌入我的Google日历,但似乎我只能在登录Google帐户时看到日历。如果我退出我的Google个人资料然后打开该页面,我只会获得一个空的iframe。

I'm trying to embed my Google calendar using an iframe in a small website that I am making, but it seems I can only see the calendar when I am logged into a Google account. If I log out of my Google profiles and then open the page, I just get an empty iframe.

我知道这是可能的,因为我看到其他网站在我没有登录谷歌时显示日历,但看着他们的代码,我看不出有任何区别我得到了什么。

I know it's possible because I've seen other websites display calendars when I'm not logged onto Google, but looking at their code I can't see any difference to what I've got.

我收到错误:

Refused to display 'googleCalendarLinkHere' in a frame because it set 'X-Frame-Options' to 'DENY'.


推荐答案

将您的日历设置为可公开查看。

Set your calendar to be publicly viewable.

这篇关于除非已登录Google帐户,否则不会显示嵌入式Google日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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