I'm creating a script that loads externally on other sites. It loads CSS and HTML and works fine on my own servers.
However, when I try it on another website it displays this awful error:
Access-Control-Allow-Origin
Here you can see it loads perfectly: http://tzook.info/bot/
But on this other website it shows the error: http://cantloseweight.co/robot/
I uploaded the loading script to jsfiddle: http://jsfiddle.net/TL5LK/
I tried editing the htaccess file like this:
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin *
</IfModule>
Or like this:
Header set Access-Control-Allow-Origin *
But it still doesn't work.