Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Sep 13, 2024
1 parent e25cd6b commit 9c40584
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions IssueVerifiableEmployee/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

var services = builder.Services;
var configuration = builder.Configuration;
var env = builder.Environment;

services.Configure<KestrelServerOptions>(options =>
{
Expand Down Expand Up @@ -61,10 +60,10 @@
var app = builder.Build();

app.UseSecurityHeaders(SecurityHeadersDefinitions
.GetHeaderPolicyCollection(env.IsDevelopment()));
.GetHeaderPolicyCollection(app.Environment.IsDevelopment()));


if (env.IsDevelopment())
if (app.Environment.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
Expand Down

0 comments on commit 9c40584

Please sign in to comment.