Skip to content

Commit

Permalink
Update stacktrace-disclosure.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
p4p3r authored Oct 24, 2024
1 parent 0bba56c commit 8a1c5b8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions csharp/lang/security/stacktrace-disclosure.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
app.UseExceptionHandler("/Error");
}
}

public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
// ok: stacktrace-disclosure
app.UseDeveloperExceptionPage();
}

0 comments on commit 8a1c5b8

Please sign in to comment.