gpt4 book ai didi

ssl - 有没有办法获得 https 版本的亚马逊横幅?

转载 作者:行者123 更新时间:2023-12-04 22:35:44 25 4
gpt4 key购买 nike

我想在我的网站上展示亚马逊横幅。这是横幅的默认代码:

<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 托管的亚马逊,我无法改变。有办法解决吗?

最佳答案

大多数支持 https 但提供 http 的服务将接受 https://our.site.com作为 http://our.site.com 的替代品.你有没有试过改变协议(protocol)从

"http://s.amazon-adsystem.com/iu3?d=assoc-amazon.com&rP=https%3A%2F%2Fexample.com"

"https://s.amazon-adsystem.com/iu3?d=assoc-amazon.com&rP=https%3A%2F%2Fexample.com"

关于ssl - 有没有办法获得 https 版本的亚马逊横幅?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61005480/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com