I have an API checking from what IP the calls are made with php REMOTE_ADDR.I want to whitelist all calls from IP adress "A".
Let's says I have an ajax call to myapi.com/controller/action/, with an AJAX js file hosted on a server with IP "A". The user has an IP "B".
Since the javascript is interpreted by the user browser, I was wondering if my REMOTE_ADDR check in my API would be IP "A" (server where the javascript file is hosted), or IP "B", IP of the user.
Thanks a lot for your help !