I am trying to use a custom font (format woff2). The font works well in Chrome (whether on local files or when the html and font files are hosted on the web), but it fails to load on Firefox when the html page and font are hosted on the web with the following error:
downloadable font: rejected by sanitizer (font-family: "My Sans Regular" style:normal weight:400 stretch:100 src index:0) source: https://host/resources/my_sans_reg_web.woff2
Here is how the font is specified in the page:
@font-face {
font-family: 'My Sans Regular';
src: url('resources/my_sans_reg_web.woff2') format('woff2');
}
body, span, button, input, textarea, form, mark, table, th, td, p, h4, h5, a {
font-family: 'My Sans Regular';
}
The size of the font file is 41kb, so it cannot be a memory issue (as suggested here https://support.mozilla.org/en-US/questions/913498 ). I researched the issue on the web and on this site, but I could not find a solution or an issue that matched exactly mine. I am using Firefox version 91.13.0esr.