Allowing Cross-domain requests
by guruprasad[ Edit ] 2014-03-06 10:24:21
To allow the cross-domain request to our domain,
header("Access-Control-Allow-Origin: http://yourdomain-your_cross_domain _name/");
This will allow the request only from the domain name specified in header in PHP file.