嵌入 Google 地图或日历时出现错误 "Failed to load resource: The server responded with a status of 404()"

Getting Error "Failed to load resource: The server responded with a status of 404()" when embedding Google Maps or Calender

我收到错误消息“加载资源失败 : 当嵌入 google 地图或 google 日历时,服务器响应状态为 404()"。禁用这些可以解决问题。但我想将地图和日历添加到我的网站。

Here's a Screenshot

<div class="embed-responsive embed-responsive-16by9">
<iframe src="https://calendar.google.com/calendar/b/1/embed?title=Upcoming%20Weekly%20and%20Monthly%20Events&amp;mode=AGENDA&amp;height=600&amp;wkst=2&amp;bgcolor=%23FFFFFF&amp;src=bsv4j120anumjsl487lc6qoe0g%40group.calendar.google.com&amp;color=%23691426&amp;ctz=Asia%2FCalcutta" style="border-width:0" width="100%" height="100%" frameborder="0" scrolling="yes"></iframe>

当您登录 Chrome 时会发生此错误。我没有在其他浏览器、隐身 window 或访客 window 中看到错误。

登录 Chrome 后,我在任何带有与上述代码类似的 Google 嵌入(地图或日历)的页面上看到错误。

当我尝试嵌入 在登录 Google / Gmail 帐户 时生成的 Google 地图/日历时,我遇到了这种情况。抛出该错误是因为 Google 正在寻找对您的帐户视图私有的地图/日历视图(即,它正在寻找与您的 Google 帐户绑定的私有资源)。如果您退出个人帐户,然后尝试生成并嵌入 public Google 地图/日历,您应该不会在 Chrome 控制台中收到此错误。