Allow CORS - Cross origin resource sharing
When writing APIs in PHP, you want other domains to access your server and you can enable it on your sever with this simple header:
<?phpheader('Access-Control-Allow-Origin: *');?>When writing APIs in PHP, you want other domains to access your server and you can enable it on your sever with this simple header:
<?phpheader('Access-Control-Allow-Origin: *');?>