Facebook和SSL部分加密 [英] Facebook and SSL partially encrypted
问题描述
加载Facebook Javascript SDK时出现问题,这将导致我的SSL连接部分加密.我尝试加载不使用异步之一,但结果相同.你有解决这个问题的家伙吗?
I got problem when loading Facebook Javascript SDK, it will causing my SSL connection partially encrypted. I try load not using the asychronous one but the result same. Do you have solution for this problem guys?
谢谢 @andriansandi
Thanks @andriansandi
推荐答案
facebook提供的用于实现JS SDK的代码使用协议相对URL ... JS文件的URL为//connect.facebook.net/en_US/all.js
.
通过不指定http/https,浏览器将自动使用请求该页面的协议.
尝试用https://connect.facebook.net/en_US/all.js
替换该协议.这将迫使facebook通过https加载SDK.
the code facebook gives to implement the JS SDK uses a protocol relative URL ... The URL of the JS file is //connect.facebook.net/en_US/all.js
.
By not specifying http/https the browser will automatically use whichever protocol the page was requested with.
Try substituting that with https://connect.facebook.net/en_US/all.js
. This will force facebook to load the SDK over https.
这篇关于Facebook和SSL部分加密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!