title: Proxy call for remote json to avoid CORS issue
body: <p>I develop an angular app that needs to consume json data from a remote server. Due to CORS issue, the app cannot directly fetch data from that server. My solution is to develop a "proxy" web api to read and return that json to my app. Currently, this is the way I'm doing:</p>
  
  <pre><code>public async Task&lt;IActionResult&gt; MyJson()
  {
      const string jsonUrl = "url-of-remote-json";
      using (var client = new HttpClient())
      {
          using (var result = await client.GetAsync(jsonUrl))
          {
              if (result.IsSuccessStatusCode)
              {
                  return new ObjectResult(JsonConvert.DeserializeObject(await result.Content.ReadAsStringAsync()));
              }
          }
      }
  
      return new ObjectResult(new { });
  }
  </code></pre>
  
  <p>However, I believe this is far from being considered an efficient way because I have to read the json as string, then convert it to object using JsonConvert package to feed the web api method. Therefore, the performance is not really good.</p>
  
  <p>I wonder if there is any easier/efficient/more simple way to do this task?</p>