Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS MIME type error #319

Open
krishaamer opened this issue Apr 4, 2016 · 4 comments
Open

CSS MIME type error #319

krishaamer opened this issue Apr 4, 2016 · 4 comments

Comments

@krishaamer
Copy link

Hello, using this package inside a Meteor wrapper (https://github.com/Siyfion/webfontloader) I'm receiving the following error.

(Safari)
Did not parse stylesheet at 'http://localhost:3000/bgrotesque.css' because non CSS MIME types are not allowed in strict mode.

(Chrome)
siyfion_webfontloader.js?hash=ca823c6…:17 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost:3000/bgrotesque.css".

Any advice?
Thanks,
Kris

@krishaamer
Copy link
Author

Any update on this? Thanks!

@bramstein
Copy link
Contributor

The Web Font Loader never sets the mime type of CSS files, so I think this is most likely related to a setting on your server.

@erfan226
Copy link

erfan226 commented Apr 19, 2019

I know this is old but it happens when the url is incorrect and if you click on the font's src, you will get an html 404 page!

@Stanzilla
Copy link

The loader should set it though, Chrome is going to block it otherwise in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants