1

如何更改 Plone 5 中的“x-frame-options SAMEORIGIN”?它现在由 plone.protect 3 设置。我需要通过 iframe 为我们的在线教程系统加载整个站点,也就是所有页面。

我们确认我们的 apache 是正确的,因为我们可以将其他 plone 4 uwosh.edu 站点加载到其中。它只发生在 Plone 5 上。

我已经看过了:


我们的 Plone 5 网站: http ://www.uwosh.edu/library

使用 iframe 的损坏教程网站:http: //polk2.uwosh.edu/library/gots/tutorial/abiinform-complete

4

1 回答 1

2

您引用的 github 问题有答案,我相信:只需将环境变量 PLONE_X_FRAME_OPTIONS 设置为空字符串。

你可以在你的 zope 配置文件或 buildout 中设置它,或者两者都设置:

在扩建中,我有:

environment-vars = ... PLONE_X_FRAME_OPTIONS ''

environment-vars用于 inplone.recipe.zeoserver和 in plone.recipe.zope2instance

在您的 zope conf 文件中:

<environment> ... PLONE_X_FRAME_OPTIONS '' </environment>

于 2016-10-24T22:46:08.627 回答