Last active
February 16, 2017 20:41
-
-
Save verticalgrain/283382186de71db3ed093541ba8971f3 to your computer and use it in GitHub Desktop.
Fix CORS policy access errors when accessing fonts on a different domain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<FilesMatch ".(eot|ttf|otf|woff)"> | |
Header set Access-Control-Allow-Origin "*" | |
</FilesMatch> | |
Header add Access-Control-Allow-Origin "your-domain.com" | |
## To test access-control-allow-headers in terminal: | |
## curl -I https://some.cdn.otherdomain.net/media/fonts/somefont.ttf | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment