Paul Konstanski
asked on
Setting Up Cross Browser Support for Multiple Domains in .htaccess
I am running a number of api scripts off of a single server. A number of outside sites access these scripts from different domains.
When I use this command, it works fine.
Header add Access-Control-Allow-Origi n "http://example1.com"
My online research told me that this was the way to set up the .htaccess file for multiple domains, but it isn't working.
SetEnvIf Origin "^http(s)?://(.+\.)?(examp le1\.com|e xample2\.c om | example3\.org)$" origin_is=$0
Header always set Access-Control-Allow-Origi n %{origin_is}e env=origin_is
Can you provide assistance as to how this .htaccess file needs to be set up to provide cross browswer support?
Thanks.
When I use this command, it works fine.
Header add Access-Control-Allow-Origi
My online research told me that this was the way to set up the .htaccess file for multiple domains, but it isn't working.
SetEnvIf Origin "^http(s)?://(.+\.)?(examp
Header always set Access-Control-Allow-Origi
Can you provide assistance as to how this .htaccess file needs to be set up to provide cross browswer support?
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.