使用 iframe 嵌入来自 mediawiki 的编辑页面
我尝试在 MediaWiki 支持的网站中嵌入编辑页面,但问题是给出了空白页面。
注意:当我尝试嵌入登录页面时,也会发生同样的情况。
例如:
<iframe src="http://www.wikilogia.net/w/index.php?title=IT_for_Masses&action=edit">
</iframe>
I tried to embed an edit page in a MediaWiki-powered site, but the problem is that a blank page is given.
Note: the same thing occurs when I try to embed a sign in page.
For example:
<iframe src="http://www.wikilogia.net/w/index.php?title=IT_for_Masses&action=edit">
</iframe>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我一直在为同样的问题挠头。查看页面工作正常,但当我尝试进行任何编辑或使用登录表单等时,我只会得到空白响应。要修复此问题,只需将以下行添加到 LocalSettings.php:
有关更多信息,请参阅手册:https:// /www.mediawiki.org/wiki/Manual:$wgEditPageFrameOptions
I've been scratching my head with the same problem. Viewing pages worked fine but when I tried to do any editing or use login forms etc, I would just get a blank response. To fix it, just add the following lines to your LocalSettings.php:
For more, see the manual: https://www.mediawiki.org/wiki/Manual:$wgEditPageFrameOptions
有些网站阻止您将它们放入 iframe 中。
Some sites prevent you from putting them in an iframe.