app.UseStaticFiles(new StaticFileOptions
{
OnPrepareResponse = (c) =>
{
c.Context.Response.Headers.Add("Access-Control-Allow-Origin", "*");
}
});