Created
February 29, 2012 18:53
-
-
Save ryanlindsey/1943509 to your computer and use it in GitHub Desktop.
Apache config for cross-domain fonts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Edit: /etc/apache2/apache2.conf | |
AddType application/vnd.ms-fontobject .eot | |
AddType font/ttf .ttf | |
AddType font/otf .otf | |
<FilesMatch "\.(ttf|otf|eot)$"> | |
<IfModule mod_headers.c> | |
Header set Access-Control-Allow-Origin "*" | |
</IfModule> | |
</FilesMatch> | |
Note: | |
The headers module might also need to be loaded in Apache | |
$ sudo a2enmod headers | |
$ sudo /etc/init.d/apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment