local (file://) website favicon works in Firefox, not in Chrome or Safari- why?

后端 未结 7 1456
-上瘾入骨i
-上瘾入骨i 2020-11-27 18:15

The Question

When my website is local (using the file:// protocol), the favicon doesn\'t show up in Chrome or Safari, but it works in Firefox (all on a

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-27 18:38

    Once I've solved it using two lines of code

     
    
    

    and also keep the favicon.ico named exatly this and in the webroot folder, if it helps.

提交回复
热议问题