【问题标题】:Does Google Form on AMP require HTTPS?AMP 上的 Google 表单是否需要 HTTPS?
【发布时间】:2020-03-12 18:42:27
【问题描述】:

我正在尝试在我的 AMP 页面上嵌入 Google 表单,但是当我尝试使用 AMP 代码时。它只是说“正在加载...”,其中 Google 表单应该是:http://mogotest.com/amp/purple-mattress-coupon.html(请参阅移动设备)

到目前为止我采取的步骤。 1.我把这段代码放在AMP页面的头部

<script async custom-element="amp-iframe"
  src="https://cdn.ampproject.org/v0/amp-iframe-0.1.js"></script>
  1. 我将此 Google 表单代码放在页面上。
<amp-iframe src="https://docs.google.com/forms/d/e/1FAIpQLSeFJf7DVgmzPEE1UfYXE3Oy0aBef80QXmRtLfKd1-b8aek0IQ/viewform?embedded=true" width=“100%” height="678" frameborder="0" marginheight="0" marginwidth="0">Loading…</amp-iframe>

有谁知道如何解决这个问题,还是我的 AMP 页面不是 HTTPS 的问题?

【问题讨论】:

  • HTTPS 和 CORS 是先决条件
  • 所以它需要有 https 才能让谷歌表单工作?
  • 同上评论
  • @JayGray HTTPS 不是必需的,视频、iframe 等某些功能需要它。

标签: wordpress embed amp-html google-forms


【解决方案1】:

您需要将您的网站移至 HTTPS 才能使用 视频、iframe

在下面的文章中,清楚地提到了哪些可以使用 http,哪些不能没有 https。

https://amp.dev/documentation/guides-and-tutorials/start/create/basic_markup/?format=websites

【讨论】:

  • 同上评论。 OP 似乎不接受这个建议。
猜你喜欢
  • 1970-01-01
  • 2018-09-09
  • 2018-02-09
  • 1970-01-01
  • 2017-10-06
  • 1970-01-01
  • 2013-03-14
  • 2021-09-05
相关资源
最近更新 更多