Tag Archives: header

1,853 views

Access-Control-Allow-Origin Multiple Origin Domains

In browser’s console get message: no ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin is therefore not allowed access. PHP source code: put into start of php script // different DOMAINS $http_origin = $_SERVER[’HTTP_ORIGIN’];   if ($http_origin == "http://www.domain1.com" … Continue reading

Posted in PHP | Tagged , | Comments Off on Access-Control-Allow-Origin Multiple Origin Domains