Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public override void Configure(IApplicationBuilder app)
{
app.UseProblemDetails(x =>
{
// This is the default behavior; only include exception details in a development environment.
x.IncludeExceptionDetails = ctx => Environment.IsDevelopment();
});
app.UseMvc();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment