Is there a way to allow multiple cross-domains using the Access-Control-Allow-Origin header?
Access-Control-Allow-Origin
I\'m aware of the *, but it is too open. I rea
*
This worked for me:
SetEnvIf Origin "^http(s)?://(.+\.)?(domain\.example|domain2\.example)$" origin_is=$0 Header always set Access-Control-Allow-Origin %{origin_is}e env=origin_is
When put in .htaccess, it will work for sure.
.htaccess