Skip to content

Instantly share code, notes, and snippets.

@saltybeagle
Created October 7, 2011 16:30
Show Gist options
  • Save saltybeagle/1270725 to your computer and use it in GitHub Desktop.
Save saltybeagle/1270725 to your computer and use it in GitHub Desktop.
Cross-origin Web Fonts
AddType font/x-woff .woff
AddType image/svg+xml .svg
AddType application/vnd.ms-fontobject .eot
SetEnvIf Origin "^(.*\.unl\.edu)$" ORIGIN_SUB_DOMAIN=$1
<FilesMatch "\.(svg|eot|woff)$">
Header set Access-Control-Allow-Origin "%{ORIGIN_SUB_DOMAIN}e" env=ORIGIN_SUB_DOMAIN
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment