Skip to content

Instantly share code, notes, and snippets.

@sofish
Created June 24, 2013 03:04
Show Gist options
  • Save sofish/5847517 to your computer and use it in GitHub Desktop.
Save sofish/5847517 to your computer and use it in GitHub Desktop.
set origin to allow origin domain
SetEnvIf Origin "^(.*\.baixing\.com)$" ORIGIN_SUB_DOMAIN=$1
<FilesMatch "\.(ttf|otf|eot|woff)">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "%{ORIGIN_SUB_DOMAIN}e" env=ORIGIN_SUB_DOMAIN
</IfModule>
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment