HTML and CSS Reference
In-Depth Information
<IfModule mod_headers.c>
<FilesMatch
"\.(ttf|ttc|otf|eot|woff|font.css)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
To the following code snippet:
<IfModule mod_headers.c>
<FilesMatch
"\.(ttf|ttc|otf|eot|woff|font.css)$">
Header set Access-Control-Allow-Origin
"http://example.com"
</FilesMatch>
</IfModule>
Replace http://example.com with the domain name you would like to specific-
ally allow access to the Webfonts.
Note
If you would like to get a good overview of how CORS-enabled image, Webfont,
and AJAX requests work and differ from crossdomain.xml , you should read
the HTML5security project wiki page at code.google.com/p/html5secur-
ity/wiki/CrossOriginRequestSecurity .
Search WWH ::




Custom Search