If you are just interested in the use of Access-Control-Allow-Origin:*
You can do that with this .htaccess
file at the site root.
Header set Access-Control-Allow-Origin "*"
Some useful information here: http://enable-cors.org/server_apache.html