Gok*_*nde 5 javascript php ssl sharethis
我已将我的网站域名更改为http://,https://并且我已在我的网站中添加了sharethis插件.
它工作正常,http://但现在没有按钮分享这个显示我尝试访问我的网站使用https://.
以下是我网站的网址:
https://www.placementbooster.ch/
我已经改变了http://w.sharethis.com/button/buttons.js对https://ws.sharethis.com/button/buttons.js和http://s.sharethis.com/loader.js对https://s.sharethis.com/loader.js.
但它仍显示错误:
ReferenceError:sharethis未定义
Nil*_*lez 10
改编自文档:
https://support.sharethis.com/hc/en-us/articles/217916188-Moving-from-HTTP-to-HTTPS-SSL-Support
定期ShareThis脚本
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript" src="http://s.sharethis.com/loader.js"></script>
<script type="text/javascript">
stLight.options({
publisher:'12345',
});
</script>
Run Code Online (Sandbox Code Playgroud)
安全ShareThis脚本
<script type="text/javascript" src="https://ws.sharethis.com/button/buttons.js"></script>
<script type="text/javascript" src="https://ss.sharethis.com/loader.js"></script>
<script type="text/javascript">
stLight.options({
publisher:'12345',
});
</script>
Run Code Online (Sandbox Code Playgroud)
我正在使用此代码,它正确加载,没有任何混合内容问题
我没有定义"stLight",发现了一篇关于迁移到HTTPS 的博文.它基本上是将" http:// w "改为" https:// ws ",然后就解决了这个问题.该帖子中有一个" https:// ss " 链接.也许您需要将" https:// s " 更改为" https:// ss "?
| 归档时间: |
|
| 查看次数: |
9766 次 |
| 最近记录: |