Denne tråd blev arkiveret. Stil et nyt spørgsmål, hvis du har brug for hjælp.
fonts block CORS
I've been using firefox for a while. A few versions ago (I don't remember the correct version), I started noticing some sites have broken font (defaulting the base font as used font is not available) and/or icons not being displayed.
I started investigating my extensions (I'm using ublock origin) and standard protection from firefox. Inside the console and found out that fonts (in my example at least) are being block by CORS policy.
E.g: "Blocking of a cross-origin request: the "Same Origin" policy does not allow viewing the remote resource located at https://fonts.gstatic.com/s/materialicons/v135/flUhRq6tzZclQEJ-Vdg-IuiaDsNc .woff2. Reason: CORS request failed. Status code: (null)." on website "https://materializecss.com/"
That is not breaking the browser but is kinda annoying. How can I do to allow fonts to be downloaded and used ? I've checked with other browsers (chrome/chrome-like/safari) and they work as excepected. Note that it's perfectly working for the very same website on firefox iOS