Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save name-k/8080385 to your computer and use it in GitHub Desktop.
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:
<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