Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何在iframe中执行https://url_Php_Html_Codeigniter_Iframe - Fatal编程技术网

Php 如何在iframe中执行https://url

Php 如何在iframe中执行https://url,php,html,codeigniter,iframe,Php,Html,Codeigniter,Iframe,这是我的密码 <!DOCTYPE html> <html lang="en"> <head> </head> <body> <div id="container"> <iframe src="https://google.com" style="width:1000px;height:1000px"></iframe> </div> </body> </htm

这是我的密码

<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>

<div id="container">
    <iframe src="https://google.com" style="width:1000px;height:1000px"></iframe>
</div>

</body>
</html>

该问题与https
https
无关

查看错误消息:

 because it set 'X-Frame-Options' to 'SAMEORIGIN'
谷歌明确告诉你的浏览器,只有
Google.com
才允许在iframe中显示页面

没有办法推翻这种行为。这是谷歌的网页


最接近的方法是将内容复制到您自己的服务器并在那里显示。注意国际版权法。

否。帧选项标题响应指出,您在请求时只能使用
SAMEORIGIN
。如果我删除并放置,则也可以使用相同的error@MohitJain-这只是意味着亚马逊给浏览器同样的指令。只有亚马逊被允许将亚马逊的页面放入框架中。
 because it set 'X-Frame-Options' to 'SAMEORIGIN'