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'