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
*
Another solution I'm using in PHP:
$http_origin = $_SERVER['HTTP_ORIGIN']; if ($http_origin == "http://www.domain1.com" || $http_origin == "http://www.domain2.com" || $http_origin == "http://www.domain3.com") { header("Access-Control-Allow-Origin: $http_origin"); }