Facebook 分享按钮破坏了我的 SSL/HTTPS

标签 facebook ssl https

Facebook 分享按钮中断了我在 Chrome 中的 SSL/HTTPS 连接。 Chrome 正在显示一个红色的 HTTPS,并在 https 上显示一个 (/) 斜杠。

它的状态:

Your connection to XXXXXXXXXX.com is encrypted with 256-bit encryption. However, this page includes other resources which are not secure. These resources can be viewed by others while in transit, and can be modified by an attacker to change the behavior of the page.

The connection uses TLS 1.0

The connection is encrypted using AES_256_CBC, with SHA1 for message authentication and DHE_RSA as the key exchange mechanism

The connection is not compressed.

我该如何解决这个问题?下面列出了我的 Facebook 代码:

name="fb_share" 
share_url="https://mysexywear.com/product_details.php?prodId=<?php echo $prodId;?>&catId=<?php echo $catId;?>" 
href="https://www.facebook.com/sharer.php">Share

src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"

最佳答案

尝试使用相对协议(protocol),如下所示:

name="fb_share" share_url="//mysexywear.com/product_details.php?prodId=&catId=" href="//www.facebook.com/sharer.php">

关于Facebook 分享按钮破坏了我的 SSL/HTTPS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9556731/

相关文章:

c# - Mono 下的 WCF over TLS

ssl - 在 Drupal 站点上使用 SSL - 域不安全

如果没有先前的互联网连接,则无法验证 Android 自签名证书

python - 从 Facebook 数据导出中解码看似格式错误的 Unicode 指针的 utf8 表示形式

facebook - Grails Spring-Security-Facebook插件的accessToken

java - Java 如何接受我的自签名证书而无需将其添加到 Java 信任库

swift 4 - HTTP 请求未执行

android - 无法通过 Android 应用程序在 Facebook 上共享内容

php - 如何创建不可预测的用户标识?

ssl - 使用 CA.key :openssl 签署用户证书