title: Get the host of the URL
body: <p>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.</p>
  <p>I need to return the URL that is masking the base URL for pagination, but when I write
  <code> Request.Host</code> I get the base URL, which should not be revealed.</p>
  <pre><code>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.
  
  </code></pre>
  <p>How can I get the URL(just the Host) of the one that is masking the base URL?</p>