【发布时间】:2016-10-25 06:46:08
【问题描述】:
如何更改 Plone 5 中的“x-frame-options SAMEORIGIN”?它现在由 plone.protect 3 设置。我需要通过 iframe 为我们的在线教程系统加载整个网站,也就是所有页面。
我们确认我们的 apache 是正确的,因为我们可以将其他 plone 4 uwosh.edu 站点加载到其中。它只发生在 Plone 5 上。
我已经看过了:
- https://community.plone.org/t/can-i-configure-my-plone-site-to-be-embedded-via-iframe/2101/4
- https://github.com/plone/plone.protect/issues/36
我们的 Plone 5 网站: http://www.uwosh.edu/library
使用 iframe 的损坏的教程网站: http://polk2.uwosh.edu/library/gots/tutorial/abiinform-complete
【问题讨论】:
-
我需要一个“现在”的临时修复,因为在大学教授的课程需要这个教程系统来获得认证。他们将在下周接受审查。我将 plone.protect.auto.py x-frame-options 更改为“允许”,只是为了度过即将到来的一周。我仍然想以正确的方式解决这个问题。
-
不是软件内修复,但由于你在反向代理后面有 Plone,你可以在那里无条件地unset response headers。