我试图将iframe包含到Zend 2视图中。无论我做什么,帧都显示http。我试过使用如下路径
echo '<iframe src="/path/to/iframe.php">';
和
echo '<iframe src="https://www.example.com/path/to/iframe.php">';
两者在网站上显示为
http://example.com/path/to/file.php似乎Zend正在剥离https并用http代替它。
我相信这是很简单的。我到处找都找不到答案。这会导致一个问题,因为它会标记混合内容。
问题不在于Zend,而在于iframe本身。
单页php图库(这是iframe的内容)重定向到http.
从这里得到的教训是,总是检查这是你认为引起问题的原因