Allowing Cross-domain requests

by guruprasad 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.
563
like
0
dislike
0
mail
flag

You must LOGIN to add comments