Local bootstrap 3.1 glyphicons not loading in Firefox

做~自己de王妃 提交于 2019-12-04 19:14:15

The problem is apparently https://developer.mozilla.org/en/docs/HTTP/Access_control_CORS

What works for me is:

"If you have a page at file:////pages/mypage.html, then you can only load fonts located in file:////pages or below. So, for example, if the fonts are in file:////fonts, they won't load, but if they are in file:///pages/fonts, then they should work. At least, that's how it seems to work for me." posted by freixas @ https://support.mozilla.org/en-US/questions/956597

So basically I put my resources dir (contains scripts, images etc) in the root directory where I have the web pages.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!