页面选项卡加载来自某些域的内容,但不加载其他域的内容?
我为页面创建了一个欢迎选项卡。当我设置页面选项卡 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定 http://journalism.unr.edu/facebook/welcome/ 有什么问题
但我什至无法将其加载到 iframe 内。也许在为该站点提供服务的托管或服务器中存在一些限制设置。或者服务器可能存在更复杂的问题,不允许从不同的主机域构建 iframe。
测试很简单,制作一个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.
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.