X-Frame-Options拒绝加载:不允许框架 [英] Load denied by X-Frame-Options: does not permit framing

查看:1781
本文介绍了X-Frame-Options拒绝加载:不允许框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找iframe的帮助。我打算创建一个网站,除了自己的内容外,还有世界上最大的报纸网站(如纽约时报,金融时报和其他一些网站)的链接(在iframe中)。

I'm looking for help with iframes. I'm going to create a website which — in addition to its own content — would have links (in iframes) to the world biggest newspaper websites like New York Times, Financial Times and some other.

但是我遇到了一个框架许可问题。例如,NY Times向我显示错误 X-Frame-Options拒绝加载:http://www.nytimes.com/不允许框架。我读了很多论坛,但没有找到可行的解决方案。试图添加Header总是将 X-Frame-Options SAMEORIGIN 附加到.haccess文件中,但它没有帮助。有没有办法解决这个问题?

But I've faced with a problem of framing permission. For example, NY Times shows me an error Load denied by X-Frame-Options: http://www.nytimes.com/ does not permit framing. I have read many forums and didn't found a workable solution. Tried to add Header always append X-Frame-Options SAMEORIGIN into .haccess file but it didn't help. Is there any way to solve this question?

推荐答案

有些网站的服务器设置不允许其他网站框架他们的内容。这主要是为了保护他们的版权并仅将流量引导到他们的网站。

Some websites have a server setting that will not allow other websites to "frame" their content. This is mainly to protect their copyrights and direct traffic to their websites only.

这通常通过在Apache的配置中添加以下内容来完成( httpd。 conf file):

This is typically done by adding the following to Apache's configuration ( httpd.conf file):

Header always append X-Frame-Options SAMEORIGIN

不幸的是,如果你想构建网站,你真的无能为力。

Unfortunately, there is really nothing you can do about it if you want to frame the website.

这篇关于X-Frame-Options拒绝加载:不允许框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆