2014-01-14 31 views

回答

11

基本上如果一个页面加载通过HTTPS则使用的每个资源也应通过HTTPS加载。这是浏览器安全策略的一部分,就像Same-Origin Policy

幸运ShareThis可以反复使用HTTPS是这样的:

<script type="text/javascript" src="https://ws.sharethis.com/button/buttons.js"></script> 
<script type="text/javascript"> 
    stLight.options({ 
     publisher:'12345', 
    }); 
</script> 

同样适用于Facebook图标。只需使用此网址:https://ws.sharethis.com/images/facebook_32.png

+0

@ user2434592您是否尝试过我建议的解决方案?你需要一些额外的澄清? – vbo

+1

其证书无效 –

+1

@MichaelJohnston - 请注意,_domain_也必须更改(https://ws.sharethis.com/button/buttons.js) - ws而不是s.sharethis.com。请参阅[本支持文章| https://support.sharethis.com/hc/en-us/articles/217916188-移动 - 从 - HTTP到TOHTTPS-SSL-支持]。可能有些愚蠢的传统CDN之所以不能仅仅使用https://:P使用相同的域 – geerlingguy