Favicon is not showing if the URL starts with https://

北城余情 提交于 2021-02-07 14:30:32

问题


I am facing one issue with favicon.ico. Here is my link rel code which has been included in header portion.

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

The problem is, I can view the favicon in all browsers if the url starts with http://. When the address starts with https://, the favicon is not showing in IE browser. Is there anything that I need to do? Did I miss anything important to include?


回答1:


I had the same problem and fixed it by putting the following line in the head section of my html file:

<link rel="shortcut icon" href="">


来源:https://stackoverflow.com/questions/24300856/favicon-is-not-showing-if-the-url-starts-with-https

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