【问题标题】:Embedding private/protected google docs/sheets in iframe在 iframe 中嵌入私有/受保护的谷歌文档/表格
【发布时间】:2021-06-14 00:00:32
【问题描述】:

有没有办法将私有/受保护的谷歌文档/表格嵌入到 iframe 中。 ?

可以嵌入公开发布的文档。

也可以嵌入私人文档,但无法在 iframe 中打开 google 登录页面。 X-Frame-Options 拒绝正在控制台中抛出。

Refused to display 'https://accounts.google.com/ServiceLogin?service=wise&passive=1209600&continue=https://docs.google.com/document/d/1v6j-12D0HXzsmp5zITfQ48pylIRwvhywFMfKC3cYKLo/edit?embedded%3Dtrue&followup=https://docs.google.com/document/d/1v6j-12D0HXzsmp5zITfQ48pylIRwvhywFMfKC3cYKLo/edit?embedded%3Dtrue&ltmpl=docs' in a frame because it set 'X-Frame-Options' to 'deny'.

最好的问候,

苏拉夫

【问题讨论】:

  • 您能描述一下正确嵌入公共文档的场景吗?然后我可以更详细地研究您的案例,并了解如何使用私人文档进行处理。
  • 公开文档是通过嵌入已发布文档功能完成的...请在此处查看support.google.com/docs/answer/…

标签: google-sheets iframe google-docs


【解决方案1】:

Publish to the web 您不会公开分享文件。我的意思是,除非您更改它,否则该文件的链接将保持私有(受限)。此外,当Publish to the web 时,有一个选项可以限制您域内的访问,称为Restrict access to the following

【讨论】:

  • 好的...但是不能通过这个权利进行编辑?
  • 不,正如文档所说If you send someone the URL of a published file, they’ll see a version they can’t edit that looks different from yours.
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2014-01-08
  • 2015-05-30
  • 1970-01-01
  • 2014-08-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多