Internet Explorer "CSS was ignored due to mime type mismatch" on local files (no server) -
i'm developing application creates html report @ end, outputs js , css files separately loads files normally. internet explorer 8-10+ refuses load css files due "css ignored due mime type mismatch", of course, mime can't modified, local files , not being served server.
so in short:
- local files (c:\,file://,etc)
- css won't load due "mime type mismatch"
- works in every other browser without issue -_-
- not "http://" or "localhost" or variant
so, have idea's on work-around issue?
html loading of css:
<head> <title>results</title> <link href='resources/bootstrap.min.css' rel='stylesheet' type='text/css' /> <link href='resources/bootstrap-responsive.min.css' rel='stylesheet' type='text/css' /> <link href='resources/style.css' rel='stylesheet' type='text/css' /> <meta name='viewport' content='width=device-width, initial-scale=1.0'> </head>
note: according microsoft, fix is: "ensure style sheet file delivered proper http response header, includes content type of text\css. see mime-handling changes in internet explorer more information.", impossible, no header's being sent across wire......
i'm on windows 8.1 using ie11 same issue. how fixed it:
- on computer search "regedit.exe" (go start menu , click on search button on top-right corner of screen).
- once regedit opens up, on left column click on "hkey_classes_root" , on ".css"
- on right column double-click on "content type". open dialog box.
- in dialog box change "value data" "text/css".
- click "ok" , that's it.
i hope helps other people out there.
Comments
Post a Comment