OS=GNU/Linux Debian
Httpd=Apache/2.4.10
Change in /etc/apache2/apache2.conf
<Directory /var/www/html>
Order Allow,Deny
Allow from all
AllowOverride all
Header set Access-Control-Allow-Origin "*"
</Directory>
Add/activate module
a2enmod headers
Restart service
/etc/init.d/apache2 restart