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

Posted by mikez302 on Stack Overflow See other posts from Stack Overflow or by mikez302
Published on 2010-03-29T23:02:16Z Indexed on 2010/03/30 1:03 UTC
Read the original article Hit count: 487

Filed under:
|
|
|
|

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 would be used on, and it didn't work. I thought it may have been a bug, but from what I read on the MDC reference page, I noticed this note:

In Gecko, web fonts are subject to the same domain restriction (font files must be on the same domain as the page using them), unless HTTP access controls are used to relax this restriction.

It looks like they designed the browser that way on purpose. Out of curiosity, why would they do that? Is there any security risk with embedding a font? Or is it for legal trademark or copyright issues? Or something else?

© Stack Overflow or respective owner

Related posts about firefox

Related posts about fonts