简体   繁体   English

Zend 2 从 iframe 中删除 https

[英]Zend 2 removing https from iframe

I'm trying to include an iframe into a Zend 2 view.我正在尝试将 iframe 包含到 Zend 2 视图中。 No matter what I do the frame is displayed http.无论我做什么,框架都显示为 http。 I have tried using the path like this我试过使用这样的路径

echo '<iframe src="/path/to/iframe.php">';

and

echo '<iframe src="https://www.example.com/path/to/iframe.php">';

Both show on the site as两者都在网站上显示为

http://example.com/path/to/file.php http://example.com/path/to/file.php

It seems Zend is stripping out the https and replacing it with http. Zend 似乎正在剥离 https 并将其替换为 http。

I'm sure this is something simple.我相信这很简单。 I've searched high and low and cannot find an answer.我搜索了高低,找不到答案。 This is causing a problem as it is flagging up mixed content.这会导致问题,因为它正在标记混合内容。

The problem wasn't with Zend but with the iframe itself.问题不在于 Zend,而在于 iframe 本身。

Single page php gallery (which was the contents of the iframe) redirects to http.单页 php 库(这是 iframe 的内容)重定向到 http。

Lesson learned here, always check that it is what you think causing the problem在这里学到的教训,始终检查是否是您认为导致问题的原因

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM