You can use Cross-Origin Resource Sharing (CORS) on all of our shared, WordPress and Cloud hosting plans!
Just add the following lines to your website's .htaccess file:
Header set Access-Control-Allow-Origin "*"
If you don't have an .htaccess file, you can easily create one and then add the lines to start using CORS.
In case you want to define the cross-origin headers in a PHP file, use the following code:
header("Access-Control-Allow-Headers: Authorization, Content-Type");
header('content-type: application/json; charset=utf-8');
For the resources to load properly, CORS needs to be added to the origin source