title: Web api netcore set Cors in appsettings.json file
body: <p>I'm using a webapi .netcore project.
  I want to put all the cross settings in the appsettings.json file.
  How do I do this?</p>
  
  <p>This is my code:</p>
  
  <pre><code> app.UseCors(x =&gt; x.WithOrigins("http://localhost:4200")
      .AllowCredentials()
      .WithHeaders("content-type")
      .WithMethods("GET", "POST", "PUT", "DELETE"));
  </code></pre>