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.