If you just launched your website after developing in a subdomain and you notice that things just don't look right or you are getting strange glitches, you should consider enabling Cross-Origin Resource Sharing (CORS).
To fix this problem, simply add the following line to your .htaccess file.
Header set Access-Control-Allow-Origin "*"
For more information please visit: http://enable-cors.org/