在iframe中显示来自SharePoint Online的pdf / aspx文件

时间:2018-07-03 10:22:08

标签: iframe sharepoint sharepoint-online x-frame-options

我想做的是在网站的iframe中渲染pdf / aspx文件。 我知道共享点使用X-Frame-Options = SAMEORIGIN发送文件,因此无法在共享点外部完成。 enter image description here

但是,由于我的网站位于页面查看器Web部件中,并且我已经从“网站集管理”部分中的“ HTML字段安全”中批准了我的网站“域”,以便将该域添加到批准的域列表中。 如here

所述

它可以完美运行,但只能在Edge或Internet Explorer中使用。

但是在Chrome上,我收到此错误:

Refused to display 'https://xxxxxx.sharepoint.com/Delade%20dokument/IN0090.pdf' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

我可以做些什么使它在Chrome其他任何浏览器上运行吗?

0 个答案:

没有答案
相关问题