Skip to content

Instantly share code, notes, and snippets.

@not-only-code
Last active October 5, 2015 22:58
Show Gist options
  • Save not-only-code/2891941 to your computer and use it in GitHub Desktop.
Save not-only-code/2891941 to your computer and use it in GitHub Desktop.
Web fonts .htaccess snippet
# 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