W3C home > Mailing lists > Public > www-font@w3.org > July to September 2009

Re: .webfont Proposal

From: John Daggett <jdaggett@mozilla.com>
Date: Wed, 8 Jul 2009 15:00:54 -0700 (PDT)
To: www-font <www-font@w3.org>
Message-ID: <33265840.206201247090454986.JavaMail.root@cm-mail02.mozilla.org>
>>  Same-site origin restrictions are simple, font linking is allowed
>>  only when the origin is the same.  CORS is only involved for
>>  *exceptions*, such as a font library wanting to provide general
>>  access to everyone, so 99% of the time authors don't need to worry
>>  about CORS at all.
> 
> Btw, do you know a link for an explanation of how one can do that -
> set Apache to send "Access-Control-Allow-Origin: *" headers to all
> requests? :-)

Something like this in a .htaccess file?

<FilesMatch "\.(ttf|otf)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
Received on Wednesday, 8 July 2009 22:01:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 11 June 2011 00:14:02 GMT