Firefox (52.6) is refusing to download a font and giving the error "Content Blocked Source". The same page works fine in Chrome. The error is:
downloadable font: download failed (font-family: "Myfont" style:normal weight:normal stretch:normal src index:0): content blocked source: http://example.com/test/Myfont.ttf
The CSS code looks like this:
@font-face {
font-family: 'Myfont';
src: url('Myfont.ttf') format('truetype');
}
The font is present in the /test directory. When Chrome loads this page, it requests the font and receives and displays it correctly.
The web site itself is a very simple HTTP web site run on Apache. There is no third party content, no active content, no Javascript, no HTTPS. The CSS is embedded in the HTML page (index.html). There is no separate CSS file. The server is obviously serving the font, since Chrome can display it. If I try to download just the font in Firefox it works. In other words, the following URL works in Firefox:
http://example.com/test/Myfont.ttf
This is the exact same URL that Firefox is reporting as "Content Blocked" when it is accessed via CSS @font-face.
I also tried moving everything to the root directory, both font and index.html and it made no difference. Works in Chrome. Does not work in Firefox.
In my client, I changed security.fileuri.strict_origin_policy to FALSE, and it still does not work, so it is not an origin problem.