Skip to content

Instantly share code, notes, and snippets.

@levnhub
Created June 21, 2018 10:21
Show Gist options
  • Save levnhub/51b69ea38e282d6e538394ac1c2584e3 to your computer and use it in GitHub Desktop.
Save levnhub/51b69ea38e282d6e538394ac1c2584e3 to your computer and use it in GitHub Desktop.
.htaccess tricks
* For font from other domain
<FilesMatch "\.(ttf|otf|eot|woff|woff2)$">
<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