[freeze break request] Enable CORS for webfont files

Pierre-Yves Chibon pingou at pingoured.fr
Wed Nov 26 22:14:24 UTC 2014


On Wed, Nov 26, 2014 at 04:41:50PM -0500, Ricky Elrod wrote:
> We have sites (spins.fp.o, namely) which include webfonts from fp.o.
> 
> These includes are getting blocked because they are on a different
> (sub)domain. I would like to enable CORS headers for webfonts so that we
> can include them on other sites. The alternative is copying the css and
> fonts over to spins.fp.o directly but then we have multiple places to
> update the css every time we change it, which seems bad.
> 
> I tested this patch locally and it works as expected.
> 
> +1's?
> 
> 
> commit 694cc14b4abe38bcaeae9deb13125b3aaabad7fc
> Author: Ricky Elrod <codeblock at fedoraproject.org>
> Date:   Wed Nov 26 21:27:52 2014 +0000
> 
>     Enable CORS header for webfonts
> 
>     Signed-off-by: Ricky Elrod <codeblock at fedoraproject.org>
> 
> diff --git a/modules/fedora-web/files/fedora-web.conf
> b/modules/fedora-web/files/fedora-web.conf
> index 5ed95aa..a73fdaf 100644
> --- a/modules/fedora-web/files/fedora-web.conf
> +++ b/modules/fedora-web/files/fedora-web.conf
> @@ -14,6 +14,10 @@ AddEncoding gzip .svgz
>    </IfModule>
>  </FilesMatch>
> 
> +<FilesMatch \-webfont>
> +  Header set Access-Control-Allow-Origin "*"
> +</FilesMatch>
> +

Just out of curiosity, can we be a little more specific than "*" ?

If not, then +1 for me.

Pierre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20141126/91ea7c69/attachment.sig>


More information about the infrastructure mailing list