Skip to content

Instantly share code, notes, and snippets.

@tigefa4u
Last active February 5, 2016 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tigefa4u/c223d064229e6f74c37c to your computer and use it in GitHub Desktop.
Save tigefa4u/c223d064229e6f74c37c to your computer and use it in GitHub Desktop.
Serving Fonts from CDN 👍

The .htaccess or httpd.conf Code

The code can be placed with the .htaccess file or httpd.conf file:

# Apache config
<FilesMatch ".(eot|ttf|otf|woff)">
	Header set Access-Control-Allow-Origin "*"
</FilesMatch

Learn more here 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment