I'm trying to use mod_headers to set a header for certain file types. Specifically, I want to set Access-Control-Allow-Origin
to "*"
for ttf
files. Is there a rule I can add to my VirtualHost that will do this for me?
I'm trying to use mod_headers to set a header for certain file types. Specifically, I want to set Access-Control-Allow-Origin
to "*"
for ttf
files. Is there a rule I can add to my VirtualHost that will do this for me?
You can use the
<Files>
tag to do this (docs), i.e.:This will restrict the
Header
to only files ending in.ttf
. Hope this helps!And, an alternate option: