

Simple fix to allow crossdomain requests in javascript. Typically the browser won’t let you load resources from other domains using javascript. To allow this add this to an .htaccess file in the directory you are trying to load resources from:

<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin “*”

This will allow all crossdomain requests to access resources on the server.