Last active
January 1, 2016 02:39
-
-
Save name-k/8080385 to your computer and use it in GitHub Desktop.
Allow Cross-Domain Fonts with CORS
I had no idea how big of a response I'd have when I first posted about cross-domain fonts. They're a big, confusing problem for people but HTML5BP also has a solution:
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
<IfModule mod_headers.c> | |
<FilesMatch "\.(eot|otf|ttc|ttf|woff)$"> | |
Header set Access-Control-Allow-Origin "*" | |
</FilesMatch> | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment