【发布时间】:2014-04-28 12:46:10
【问题描述】:
这是我的代码
<!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>
和控制台中的错误,即
Refused to display 'https://www.google.co.in/?gws_rd=cr&ei=YE1eU9jPItDqrQe8g4GwCg' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
【问题讨论】:
-
没有。框架选项标头响应指出您只能在请求时使用
SAMEORIGIN。
标签: php html codeigniter iframe