Skip to content

Instantly share code, notes, and snippets.

@rickharris
Created August 11, 2010 04:28
Show Gist options
  • Save rickharris/518484 to your computer and use it in GitHub Desktop.
Save rickharris/518484 to your computer and use it in GitHub Desktop.
# allow access from all domains for webfonts
# alternatively you could only whitelist
# your subdomains like "sub.domain.com"
<FilesMatch "\.(ttf|otf|eot|woff|font.css)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment