Enable user secrets

This commit is contained in:
Jonas Dellinger 2020-05-29 10:33:49 +02:00
parent b2884debcd
commit f105fcbd0e

View File

@ -21,6 +21,10 @@ namespace Example.ASP
.ConfigureWebHostDefaults(webBuilder => .ConfigureWebHostDefaults(webBuilder =>
{ {
webBuilder.UseStartup<Startup>(); webBuilder.UseStartup<Startup>();
})
.ConfigureAppConfiguration((httpContext, builder) =>
{
builder.AddUserSecrets<Program>();
}); });
} }
} }