For Apache
Header set Access-Control-Allow-Origin "*"
Or set correct headers into the response header of the requested file, you will allow everyone to access the ressources:
Access-Control-Allow-Origin : *
or
Access-Control-Allow-Origin : http://www.my-domain.com