Firefox has implemented CORS so I’m attempting to set Access-Control-Allow-Origin using .htaccess. I need to do this for multiple domains. However, when I do this I get a 500 on the server I’m setting it on.
Here’s an example of the code I’m using:
<FilesMatch "\.(otf|ttf)$">
SetEnvIf Origin "^http(s)?://(.+\.)?(sub\.example\.com|website\.com|sub\.another\.com)$" origin_is=$0
Header set Access-Control-Allow-Origin %{origin_is}e env=origin_is
</FilesMatch>
Here’s where I got the idea from: http://www.lowest-common-denominator.com/2010/01/http_access_control_to_multipl.php
Any idea why this isn’t working on Dreamhost?
Thanks