大网数据广告活动
网站运营与故障问答

How to prevent browser to block mixed content (http content in a https site)

· 52CE 我爱测

I'm installing SSL in many websites, almost all of those don't give me any problem at all, but some of them do. One of the sites uses a 3rd party weather script on a remote server that does not use HTTPS:// EDIT : My website is n…

问题原文

原帖链接 · Mc Kernel · CC BY-SA 3.0

I'm installing SSL in many websites, almost all of those don't give me any problem at all, but some of them do.

One of the sites uses a 3rd party weather script on a remote server that does not use HTTPS://

EDIT: My website is not detected as insecure page, instead, it loads without any problem but browsers blocks the widget, so it doesn't print any content (it should print an iframe)

已采纳解答

原帖链接 · Simon Hayter · CC BY-SA 3.0

Sorry to be the bearer of bad news but the issue is with your site and there's no way to prevent a obviously intended notification. The notification informs users that the site is not fully secure, which its not if you are using 3rd party scripts over HTTP. If you want to solve the problem then you must use HTTPS:// on all local and external resources.

So if you want users knowing that your site is fully secure and you want Google to reward a bit of SEO value to the site because of it, then you must either have them upgrade to SSL or ditch the widget all together... there is no workaround for this issue... Also rather than using https:// you should opt to use //example.com/image.jpgif the site is accessible via both protocals.

Your three options are:

  1. Remove the widget.
  2. Accept the notification
  3. Ask them to upgrade the API service to HTTPS.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2016-11-24)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。