Fontawesome does not work when served by IIS

后端 未结 10 750
梦谈多话
梦谈多话 2021-01-02 17:10

FontAwesome does not work for me when I put my app on IIS7 server.

In Firefox the requested URL is encoded to http://l2etest.kema.intra/fonts/fontawesome-webfo

10条回答
  •  长发绾君心
    2021-01-02 17:44

    SquishIt bundling tool for MVC3 was url-encoding the font paths, so ../fonts/fontawesome-webfont.eot? in css file was changed to ../fonts/fontawesome-webfont.eot%3F. This normally returns 400, because %3F is considered unsafe. If you set requestPathInvalidCharacters="" then %3F is considered safe, but there is obviously no file ``../fonts/fontawesome-webfont.eot%3F`, therefore 404.

    I removed fontawesome.css from the bundle and everything works fine.

提交回复
热议问题