title: Api exposing url with parameters
body: <p>I have an API which i'm using for my angular project. 
  In my API i'm calling an external API which seems to work fine when I'm on local. But when I'm calling it when it's deployed to Azure it responds with CORS policy. And then expose the url with parameters to the external API.
  So my first problem is that it expose the url and the second problem is the cors policy.</p>
  
  <p><strong>Angular/Typescript</strong></p>
  
  <pre><code>  checkAccount() {
      this.httpClient.post('/api/CheckAccount',
        {
          data
        },
        { headers }).subscribe(
        (data: any) =&gt; { 
        },
        () =&gt; {
        });
    }
  </code></pre>
  
  <p><strong>C#</strong></p>
  
  <pre><code>public async Task&lt;string&gt; CheckAccount(Contract contract)
          {
              var client = new RestClient("Base url for external api");
              var resource =
                  $"rest of the url with parameters";
              var request = new RestRequest(resource, Method.GET);
  
              var result = client.Execute(request);
              return result.Content;
          }
  </code></pre>