【发布时间】:2020-07-15 05:52:36
【问题描述】:
我正在尝试在我的网站上显示亚马逊横幅。这是横幅的默认代码:
<script type="text/javascript" language="javascript">
var aax_size='160x600';
var aax_pubname = 'username';
var aax_src='302';
</script>
<script type="text/javascript" language="javascript" src="http://c.amazon-adsystem.com/aax2/assoc.js"></script>
如果我不更改 http 链接,这是我得到的错误:
first:1 Mixed Content: The page at 'https://example.com/' was loaded over HTTPS, but requested an insecure script 'http://c.amazon-adsystem.com/aax2/assoc.js'. This request has been blocked; the content must be served over HTTPS.
现在,如果我将 url src 更改为 https://c.amazon-adsystem.com/aax2/assoc.js。亚马逊横幅正在加载,但挂锁在控制台中显示以下消息:
Mixed Content: The page at 'https://example.com' was loaded over HTTPS, but requested an insecure frame 'http://s.amazon-adsystem.com/iu3?d=assoc-amazon.com&rP=https%3A%2F%2Fexample.com'. This request has been blocked; the content must be served over HTTPS.
上面的 url http://s.amazon-adsystem.com/iu3?d=assoc-amazon.com&rP=https%3A%2F%2Fexample.com 位于亚马逊托管的 javascript 中,我无法更改。有办法解决吗?
【问题讨论】:
-
您找到解决方案了吗?
标签: ssl https amazon affiliate