Woff2 Fonts suddenly not loading?

Hi all, I am working on a little project and have been using woff2 fonts that I uploaded to the project, which have been working fine until today, when I’m suddenly getting CORS errors:

I’ve also tried adding the suggested CORS headers in my server.js, thusly:

app.use(function(req, res, next) {
  res.header("Access-Control-Allow-Origin", "*");
  res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
  next();
});

But still no luck. Other (image) assets load fine, just not the woff2 fonts, but they were working previously.

Any help appreciated!

Some combination of installing the cors middleware and reuploading the font files seems to have fixed it :pray:

1 Like