phpfunction add_cors_headers() { header("Access-Control-Allow-Origin: *"); } add_action('init', 'add_cors_headers');
Download YOUR Business Entity Cheat Sheet to learn more about which is best for you!