FontAwesome doesn't display in Firefox

前端 未结 6 1970
余生分开走
余生分开走 2020-12-08 07:52

Related question here.

Boris\' answer to the above question seems to make sense, but I installed the Font Awesome files on my server and the problem remains:

6条回答
  •  情深已故
    2020-12-08 08:39

    If you are the owner of your own server, you can add a http header to deal with that problem. Problem based on cross domain policies.

    foo.com/font-awesome.woff

    boo.com/index.htm

    in that case you should add that header to foo.com

    Access-Control-Allow-Origin = "http://boo.com"
    

    or

    Access-Control-Allow-Origin = "*"
    

    that will make your font file reachable from other sites or specific site.

提交回复
热议问题