I have a Rest API deployed on my server, say A. I have 2 web application say www.B.com and www.C.com. Both B and C calls APIs deployed on server A. Now think of small scenario,
User Rob login on B.com and user andrew login to C.com. Now some of their event trigger to make a API call to server A. My problem is , any how will I able to identify that particular request coming from B.com or C.com.
This information is only in address bar of bowser, but api call is ajax call. Necessary to mention i dont want make any change in java script or front end (on either of application B.com or C.com). Change should be on serve A. Any hint to solve this will be highly appreciated. I am using Java, resteasy,jboss.