【问题标题】:mediawiki application not working properly in iframemediawiki 应用程序在 iframe 中无法正常工作
【发布时间】:2015-08-27 12:39:55
【问题描述】:

我正在研究 php 中的 MediaWiki。出于某种原因,我必须在 iframe 中打开所有这些应用程序。除了页面的编辑链接之外,一切正常。我正在使用它。

在这个 sn-p 中,一个链接工作正常,但链接 2 不工作 我的意思是它是空白页。不知道哪里有问题。任何帮助将不胜感激

<iframe width="100%" src="https://en.wikipedia.org/wiki/manoj"></iframe>
<iframe width="100%" src="https://en.wikipedia.org/w/index.php?title=IFrame&action=edit&editintro=Template:Disambig_editintro"></iframe>

【问题讨论】:

    标签: javascript jquery html iframe


    【解决方案1】:

    我已经解决了这个问题。只需在 include/defaultsetting.php 的默认设置中设置 X-frame 即可。将$wgEditPageFrameOptions = 'deny'; 设置为$wgEditPageFrameOptions = false;。现在一切正常。

    【讨论】:

    • 很好的@ShowStopper 它运行了
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-02
    • 1970-01-01
    • 2011-09-26
    • 2020-04-14
    相关资源
    最近更新 更多