Favicon does not work with SSL

耗尽温柔 提交于 2019-12-22 10:07:13

问题


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"/>

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


回答1:


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.



来源:https://stackoverflow.com/questions/12154986/favicon-does-not-work-with-ssl

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!