Why don't web fonts in Firefox work on a different domain?

后端 未结 2 1029
隐瞒了意图╮
隐瞒了意图╮ 2021-01-12 22:50

I was experimenting with the fancy new OpenType font capability in Firefox 3.5 and I ran into a problem. I was trying to embed a font on a different domain than the page it

2条回答
  •  醉话见心
    2021-01-12 23:02

    If you want to bypass it you could try adding this to your .htaccess:

    Header set Access-Control-Allow-Origin *
    

    To answer your question, it's probably related to the fact that since version 3.5 Firefox supports the cross-origin sharing standard.

提交回复
热议问题