页面选项卡加载来自某些域的内容,但不加载其他域的内容?

发布于 2024-12-26 16:47:46 字数 829 浏览 2 评论 0原文

我为页面创建了一个欢迎选项卡。当我设置页面选项卡 URL 以从 http://journalism.unr.edu/facebook/welcome 提取内容时/,选项卡显示为空白。但是,当我将内容副本上传到 http://rsj.netii 上的免费 000webhost.com 托管帐户时。 net/welcome/,并使用该地址作为页面选项卡 URL,内容加载得很好。我想知道的是,为什么?

我尝试过将其他网址的内容拉入我的页面选项卡:

  • yahoo.com - 有效
  • google.com - 无效
  • unr.edu - <强>有效
  • Journalism.unr.edu - 不起作用
  • unr.edu/engineering - 不起作用(显示错误消息:“该页面无法是无法显示您正在查找的页面,因为尝试访问时使用了无效方法(HTTP 动词)。”)

有谁知道为什么页面选项卡/iframe 应用程序加载来自某些域而不是其他域的内容?谁能告诉我如何修复 journalism.unr.edu Web 服务器(我可以访问它,我在新闻学院工作),以便页面选项卡可以从中加载内容?我们希望能够直接从我们的网站提取内容,而无需将其复制到免费托管帐户。

I’ve created a welcome tab for a Page. When I set the Page Tab URL to pull content from http://journalism.unr.edu/facebook/welcome/, the tab comes up blank. But when I uploaded a copy of the content to a free 000webhost.com hosting account at http://rsj.netii.net/welcome/, and used that address as the Page Tab URL, the content loads just fine. What I want to know is, why?

I’ve experimented with pulling content from other URLs into my page tab:

  • yahoo.com - works
  • google.com - doesn’t work
  • unr.edu - works
  • journalism.unr.edu - doesn’t work
  • unr.edu/engineering - doesn’t work (shows error message: “The page cannot be displayed. The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.”)

Does anyone know why page tabs/iframe apps load content from some domains but not others? Can anyone tell me how to fix the journalism.unr.edu web server (I have access to it, I work for the journalism school) so that page tabs can load content from it? We’d like to be able to pull content straight from our website without having to copy it over to a free hosting account.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

时光无声 2025-01-02 16:47:46

我不确定 http://journalism.unr.edu/facebook/welcome/ 有什么问题

但我什至无法将其加载到 iframe 内。也许在为该站点提供服务的托管或服务器中存在一些限制设置。或者服务器可能存在更复杂的问题,不允许从不同的主机域构建 iframe。

测试很简单,制作一个html页面就好了。

<html>
<body>
<p>I hope it loads</p>
<iframe src="http://journalism.unr.edu/facebook/welcome/" width="400" height="300"></iframe>
</body>
</html>

另外:“unr.edu/engineering - 不起作用(显示错误消息:“该页面无法显示。无法显示您正在查找的页面,因为尝试访问时使用了无效方法(HTTP 动词)。”) ”

那是因为您指向服务器上不允许 HTTP POST 的资源。

I'm not sure what is the problem with http://journalism.unr.edu/facebook/welcome/

But I cannot even get it to load inside of an iframe. Maybe there's some restriction setup in the hosting or server that servers that site. Or maybe a more complex issue with the server not allowing it to be iframed from a different host domain.

Simple to test, just make an html page like.

<html>
<body>
<p>I hope it loads</p>
<iframe src="http://journalism.unr.edu/facebook/welcome/" width="400" height="300"></iframe>
</body>
</html>

Also: "unr.edu/engineering - doesn’t work (shows error message: “The page cannot be displayed. The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.”)"

That one is because you're pointing to a resource on the server that does not allow HTTP POSTs.

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