Please bear with me if my post title seems vague, as Im not entirely knowledgeable on web/server components and terminologies, any corrections will be appreciated upon stating the issue.
Way back days ago, I'm doing good with API calls, smooth transactions back and forth, until certain requirements came down and implemented for Security reasons when accessing our API, they have this Cross Domain Policy or CORS for such requirements, now I cannot access the API anymore, my current understanding is the following
All API callers are listed on the API code/configuration
if the caller is not found on the list of the configuration, return an error(prohibit a network transaction)
this configuration of our API was configured ONLY for specific Website api callers, because the API has the list of domains that can be accepted for transactions
,I do understand the constraints the API currently has, I just cant figure out where to start searching for solution, or event single-word terminology I needed to start solving the issue, they told me to search for something called "URL referrer", but I got no luck searching for it like "Configure URL Referrer in Retrofit2" or "Intercept request for Cross Domain Policy using Retrofit2
my current thinking and approach for the solution are the following
how can I introduce myself to the API like (my domain is or I am http//im.authenticated.android.caller.com), given that it is listed on the API configuration
or How can i intercept the request and tell the API "Hey This is my identification, if I'm listed on your domain list, or any list, can you grant my network request?"
or how can I intercept, see and modify the origin caller in retrofit2
I really need some help where to start,
Any help will be greatly appreciated.