【问题标题】:Include in a SSL site in iframe an non SSL site and view it normal在 iframe 中的 SSL 站点中包含非 SSL 站点并正常查看
【发布时间】:2017-03-26 22:39:17
【问题描述】:

我尝试使用 src http://external.com/ 在 SSL wordpress 网站中添加来自外部 wordpress 网站的 iframe,但该网站未在 iframe 中加载。 第一次我表明http被https替换为auto。我添加了一个过滤器以不允许替换它,但该网站再次没有加载到 iframe 中。

我也尝试过使用 php,但发生了同样的事情。未加载 URL。

<?php echo file_get_contents('http://external.com/api.php'); ?>

api.php 内容是一个 iframe,带有来自 wordpress 帖子的随机永久链接。 我不在 iframe src 中使用 php 方法。不要对此感到困惑。

有办法让它工作吗?

谢谢

【问题讨论】:

标签: wordpress ssl iframe


【解决方案1】:

我找到了关于“How to allow http content within an iframe on a https site”的答案。其中提出的解决方案是使用 google 进行重定向或在您控制的 https 页面上创建自己的重定向脚本。

我之前提到过这个链接,但链接错误,抱歉。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-07-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-15
    • 2017-04-17
    • 2018-06-15
    相关资源
    最近更新 更多