Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Favicon does not work with SSL

Tags:

html

ssl

favicon

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?

like image 930
udar_molota Avatar asked May 22 '26 11:05

udar_molota


1 Answers

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.

like image 106
Bruno Avatar answered May 24 '26 02:05

Bruno