html - Font-awesome silly error: downloadable font: rejected by sanitizer -
downloadable font: rejected sanitizer (font-family: "fontawesome" style:normal weight:normal stretch:normal src index:1) source: http://192.168.1.254/theme/font-awesome/fonts/fontawesome-webfont.woff2?v=4.6.3 http://192.168.1.254/theme/font-awesome/css/font-awesome.min.css line 4
i keep getting above error. , tried lots of stuff found on internet. (hosting fonts on own server)
- cors issue
- mime type header config in web server
other combinations of http headers , mime types can resolve issue nothing solved it.
solution:
remove "?v=4.6.3" , remaining tail block (font-awesome.css / font-awesome.min.css).
@font-face { font-family: 'fontawesome'; src: url('../fonts/fontawesome-webfont.eot?v=4.6.3'); src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.6.3') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2?v=4.6.3') format('woff2'), url('../fonts/fontawesome-webfont.woff?v=4.6.3') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.6.3') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.6.3#fontawesomeregular') format('svg'); font-weight: normal;
updated to:
@font-face { font-family: 'fontawesome'; src: url('../fonts/fontawesome-webfont.eot'); src: url('../fonts/fontawesome-webfont.eot') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2') format('woff2'), url('../fonts/fontawesome-webfont.woff') format('woff'), url('../fonts/fontawesome-webfont.ttf') format('truetype'), url('../fonts/fontawesome-webfont.svg') format('svg'); font-weight: normal; font-style: normal; }
[solved]
Comments
Post a Comment