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 "*"

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.


Popular posts from this blog

About 12 Alwars

Post thumbnails from external URLs don’t appear in Blogger. How to resolve?

What is the unicode character for the close symbol?