最近,我与BitClix (http://bitclix.com)签约,在我的网站上试用广告。我使用他们提供的代码设置了一个测试页面(如下所示)。
但是,每次我加载页面时,它都会显示FireFox“无法连接”到ads.bcsyndication.com。
当我在web浏览器中直接进入URL时,广告显示得很好。这可能是什么原因造成的?
BitClix给出的代码:
<iframe scrolling="no" style="border: 0; width: 728px; height: 90px;" src="//ads.bcsyndication.com/get.php?s=9056"></iframe>我的测试页面代码:
<!DOCTYPE html>
<html>
<head>
<title>ACNET - Support Us!</title>
</head>
<body>
<p>Hey there, click on this ad to help us out! ;)
</p>
<iframe scrolling="no" style="border: 0; width: 728px; height: 90px;" src="//ads.bcsyndication.com/get.php?s=9056"></iframe>
</body>
</html>我尝试将//更改为http://,但Firefox仍然无法连接。
发布于 2015-03-11 08:27:10
我知道问题出在哪了。
我的SSL服务器使用https格式的SSL证书运行。因为广告网站只有http,Firefox认为iframe是“混合的活动内容”并阻止它。
在没有证书的http普通with服务器上,它工作得非常好。
TLDR;http iframe是https网站上的nono
https://stackoverflow.com/questions/28976197
复制相似问题