font-awesome not working in IE 11, if font download disabled from IE security options

前端 未结 3 818
甜味超标
甜味超标 2021-01-01 05:00

I used Font-awesome-min.css were working fine in IE 11 and chrome.

But my Client requirement is to use font-awesome even we disabled the font download from IE Inter

3条回答
  •  佛祖请我去吃肉
    2021-01-01 05:43

    Base 64 encoding does not work, entirely. It works fine on Chrome, but in IE 11 with Font Downloads disabled, it does not work.

    This makes sense and does not surprise me. From a security perspective, if you don't allow 3rd party fonts to render on your system, then why would an embedded font in CSS be treated any different? It is still a 3rd party font being downloaded from an untrusted source.

    Many solutions:

    • Don't use FA.
    • Use FA as images.
    • Convince the Domain admin to Enable Font Downloads.
    • Install the font locally (via Group Policy) and use url: local(myFont.woff).
    • If the site is internal, add it to the Trusted Sites zone and ensure Font Downloads are Enabled.

提交回复
热议问题