除非已登录Google帐户,否则不会显示嵌入式Google日历

问题描述 投票:1回答:1

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

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

我收到错误:

Refused to display 'googleCalendarLinkHere' in a frame because it set 'X-Frame-Options' to 'DENY'.
iframe calendar google-calendar-api
1个回答
4
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.