我已经将我的站点域从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:共享--没有定义
发布于 2016-05-05 19:39:19
改编自文档:
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>安全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>我使用这段代码,它正确地加载,没有任何混合内容问题。
发布于 2016-04-13 20:08:08
我得到的"stLight“没有定义,并找到了一个关于迁移到HTTPS的博客帖子。它的基本意思是将"http://w“改为"https://ws”,然后它解决了这个问题。这篇文章确实有一个"https://ss“的链接。也许您需要将"https://s“更改为"https://ss"?
发布于 2018-10-10 09:06:00
<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>这解决了我们的问题。
https://stackoverflow.com/questions/26902101
复制相似问题