【发布时间】:2017-12-26 07:31:24
【问题描述】:
我在 https 站点中有一个页面,例如 https://www.example.com,其中包含一个 iframe,该 iframe 指向同一站点中的另一个 php 页面 target.php。
<iframe src="/target.php"></iframe>
此 target.php 正在使用
将请求重定向到另一个 http urlheader("Location: http://demosite/page" ,TRUE, 307)
不幸的是,这种对 http 站点的重定向在 https iframe 中不起作用。虽然它适用于 http 页面中的 iframe 。
我试过了
file_get_contents("http://demosite/page")
并在target.php 中卷曲(而不是标头重定向)。那些没有以正确的格式返回页面。
请有人告诉我如何在 https 页面的 iframe 中显示 http 页面。
提前致谢。
【问题讨论】: