title: How to call Cross domain API in c#
body: <p>I need to call a API of different server using C#.
  I am using following method</p>
  
  <pre><code>using (HttpClient client = new HttpClient())
                  {
                      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "tolen");
                      var result = await client.GetStringAsync("url");
                      return JsonConvert.DeserializeObject(result);
                  }
  </code></pre>
  
  <p>but it always give </p>
  
  <blockquote>
    <p>403 forbidden </p>
  </blockquote>
  
  <p>I have asked the developer of this API and he suggested that I need to send <strong>preflight request</strong> also.</p>