Downloadable font on firefox: bad URI or cross-site access not allowed
On your server you will need to add:
Access-Control-Allow-Origin
To the header of the font files, so for example if you are using Apache you can add this to the .htaccess:
<FilesMatch "\.(ttf|otf|eot|woff|woff2)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
Font-awesome not properly displaying on Firefox / how to vend via CDN?
This solved the Firefox cross domain font issue for me (which causes the font to not load in Firefox). Just add the following to .htaccess
or directly to apache config:
<FilesMatch "\.(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
There is a webpage with instructions on how to set up CORS with different servers:
https://enable-cors.org/server.html
fonts are blocked in web client cors
Your browser is complaining about a missing header: Access-Control-Allow-Origin
Because this header is missing your browser does not know that the desired access is legit. Have a look at http://enable-cors.org and choose the configuration appropriate for your server.
You need to configure the server where the fonts are stored !
Related Topics
Any Way to Remove Ies Black Border Around Submit Button in Active Forms
How to Display 3 Items Per Row in Flexbox
How to Use a CSS Wildcard in the Middle of an Attribute Selector
Equal Height of Elements Inside Grid Item with CSS Grid Layout
Force Non-Monospace Font into Fixed Width Using CSS
How to Make This Header/Content/Footer Layout Using CSS
Transparent Rounded Corners on Google Map
How to Apply a CSS Transition to the Overflow Property
Are CSS3 ::Before and ::After Pseudo Elements Supported by IE9 or Not
Webpack "Ots Parsing Error" Loading Fonts
Css3 Flexbox: Display: Box VS. Flexbox VS. Flex
Browser Support for CSS :First-Child and :Last-Child
Why Can't I Animate Custom Properties (Aka CSS Variables)
Change Outline for Outlinedinput with React Material-Ui
Is the :Before Pseudo-Element Allowed on an Input[Type=Checkbox]