htaccess

Header set Access-Control-Allow-Origin in .htaccess

Add the following code in your .htaccess file,