Last active
October 5, 2015 22:58
-
-
Save not-only-code/2891941 to your computer and use it in GitHub Desktop.
Web fonts .htaccess snippet
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
# BEGIN REQUIRED FOR WEBFONTS | |
AddType font/ttf .ttf | |
AddType font/eot .eot | |
AddType font/otf .otf | |
AddType font/woff .woff | |
<FilesMatch "\.(ttf|otf|eot|woff)$"> | |
<IfModule mod_headers.c> | |
Header set Access-Control-Allow-Origin "*" | |
</IfModule> | |
</FilesMatch> | |
# END REQUIRED FOR WEBFONTS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment