Favicon不适用于SSL [英] Favicon does not work with SSL

查看:95
本文介绍了Favicon不适用于SSL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在SSL主机上有一个网站.它有一个网站图标,该图标由相对于域的URL引用:

I have a website on a SSL host. It has a favicon which is referenced by a domain-relative URL:

<link rel="shortcut icon" type="image/x-icon" href="/contextpath/favicon.ico"/>

关闭SSL时,它可以工作,但是打开SSL时,它不能工作. 如何使favicon可以与SSL一起使用?

When SSL is off, it works, but when SSL is on, it doesn't work. How can I get favicon to work with SSL?

推荐答案

根据设计,图标从位置栏中删除了

By design, favicons have been removed from the location bar in recent versions of Firefox. This is mainly to prevent downgrade attacks where the attacker is able to provide a favicon looking like a lock, thereby making the user believe that they're using HTTPS when they're not.

这篇关于Favicon不适用于SSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆