Cross-origin resource sharing (CORS)
In cases where cross-domain scripting is needed, you should add the following line in the .htaccess file of your application:
Header set Access-Control-Allow-Origin: *
This header will instruct web browsers on how to use and manage the cross-domain content. The browser then allows access to the content based on its security configuration.
You find this article useful? Click here to learn more about SiteGround web hosting experts and what else we can do for you!