How to enable Cross Origin Access through .htaccess File
Copy and paste the below code in the .htaccess file to enable Cross Origin Access to files.
# Access-Control-Allow-Origin <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" <IfModule>
If you don’t have .htaccess file in your web server, create it and add the above mentioned code.
Warning: This will provide direct access to files from your domain to other domains.