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

后端 未结 2 987
隐瞒了意图╮
隐瞒了意图╮ 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.

    0 讨论(0)
  • 2021-01-12 23:02

    Legal trademark and copyright issues sometimes restrict the usage based on domain when embedding fonts.

    Edit: That's why you should always look at the tiny letters on the font license that you might buy. If you created it, then you have full ownership and no problems at all.

    P.S: I am not a lawyer, but can confirm the case with several customers of mine.

    0 讨论(0)
提交回复
热议问题