I have domains and sub domains like bellow
http://www.my-web.com
http://admin.my-web.com
http://client.my-web.com
http://staff.my-web.com
And now i have php pages like bellow for get request(POST or GET) and process.
http://www.my-web.com/process.php
http://admin.my-web.com/process.php
http://client.my-web.com/process.php
http://staff.my-web.com/process.php
So when i post some data via AJAX POST from http://www.my-web.com/index.php
to http://client.my-web.com/process.php
it should accept.
Suppose if someone post on http://client.my-web.com/process.php
from http://their-domain.com/hack.php
via AJAX POST It should get restrict.