I am made an API that works as it is intended, but to stop the direct use of the base URL of the API, there is another URL that masks the base URL but works the same.
I need to return the URL that is masking the base URL for pagination, but when I write
Request.Host I get the base URL, which should not be revealed.
A = https://baseurl.com/api
B = https://publicurl.com/api
B masks A
need to return B for pagination in the response.
Just need to get https://publicurl.com and not the whole url.
How can I get the URL(just the Host) of the one that is masking the base URL?