使用 iframe 嵌入来自 mediawiki 的编辑页面

发布于 2024-12-02 16:05:13 字数 231 浏览 3 评论 0原文

我尝试在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

听风念你 2024-12-09 16:05:13

我一直在为同样的问题挠头。查看页面工作正常,但当我尝试进行任何编辑或使用登录表单等时,我只会得到空白响应。要修复此问题,只需将以下行添加到 LocalSettings.php:

$wgBreakFrames = false;
$wgEditPageFrameOptions = 'SAMEORIGIN';

有关更多信息,请参阅手册: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:

$wgBreakFrames = false;
$wgEditPageFrameOptions = 'SAMEORIGIN';

For more, see the manual: https://www.mediawiki.org/wiki/Manual:$wgEditPageFrameOptions

も让我眼熟你 2024-12-09 16:05:13

有些网站阻止您将它们放入 iframe 中。

Some sites prevent you from putting them in an iframe.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文