Getting the domain that calls an PHP file on your server through AJAX
问题 I'm building out an API and have a question about how to track/know which domains use the call. The API call is built in PHP, and doesn't require any authentication. A user will most likely use the API in an AJAX call on their server. So for example, my domain that is serving up the API PHP file is called dev.yourmapper.com. Someone on the domain www.metromapper.org builds a page that creates a Google map, and calls my file using Ajax to overlay my data on their map. Here is that example in