0

I am getting Resource interpreted as Font but transferred with MIME type font-woff warning in Chrome when I run my application. I understand that this is a common error & there are lots of post around the same issue.

I am using NodeJS and ExpressJS to run my web application and most of the solutions provided works for IIS or ASP.NET.

I looked at following links

  1. Link One
  2. Link Two
  3. Link Three

The warning comes only in chrome broswer.

Resource interpreted as Font but transferred with MIME type font-woff: "data:font-woff;base64,d09GRgABAAAAADV4ABMAAAAAVVAAAQAAAAAAAAAAAAAAAAAAAAAAA…0RofyBQ0TTUkwj7OhEtUMmyHSjGSOTuWY2rI32PdNJPiQZL3TSQq4+STRSagAAAAFVQS0vAAA=". jquery.js:1083
(anonymous function) jquery.js:1083
assert jquery.js:895
Sizzle.setDocument jquery.js:1082
(anonymous function) jquery.js:2556
(anonymous function) jquery.js:2611
(anonymous function) jquery.js:34
(anonymous function)

Please help.

Community
  • 1
  • 1
SharpCoder
  • 18,279
  • 43
  • 153
  • 249

1 Answers1

1

Make sure to use full "type/encoding" mime type strings when using data-uris:

data:text/html;base64,.......
data:image/png;base64,.......
data:application/font-woff;base64,.......

In this case you're missing the "application" type indication.

Mike 'Pomax' Kamermans
  • 49,297
  • 16
  • 112
  • 153