title: how to add an origin in Cors while Application is contantly running (Asp.Net mvc core)
body: <p>I am creating a web app on asp.net core. scenario is such that, a user will register his website (<a href="https://www.example.com" rel="nofollow noreferrer">https://www.example.com</a>) on my application and my application will provide some services to his website (<a href="https://www.example.com" rel="nofollow noreferrer">https://www.example.com</a>). What I want is To add his website to Origins list in CORS while my application is constantly running.</p>
  
  <pre><code>services.AddCors(o =&gt; o.AddPolicy("myPolicy", builder =&gt;
  {            
      builder.WithOrigins("http://www.example1.com","https://www.example2.com")
                         .AllowAnyMethod()
                         .AllowAnyHeader()
                         .AllowCredentials();
  }
  </code></pre>
  
  <p>Now my application is running, and a User#3 gets his website(www.example3.com) registered on my applications. Now I have to add his website(www.example3.com) in Origins. and I don't want my application to get restart. I'am stuck. How can I do that ??</p>