【发布时间】: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<mpl=docs' in a frame because it set 'X-Frame-Options' to 'deny'.
最好的问候,
苏拉夫
【问题讨论】:
-
您能描述一下正确嵌入公共文档的场景吗?然后我可以更详细地研究您的案例,并了解如何使用私人文档进行处理。
-
公开文档是通过嵌入已发布文档功能完成的...请在此处查看support.google.com/docs/answer/…
标签: google-sheets iframe google-docs