Simplifying the options to the error page middleware.
This commit is contained in:
parent
4fc1857994
commit
2a19ec7b2a
|
|
@ -22,15 +22,7 @@ public class Startup
|
|||
{
|
||||
CreateAdminUser();
|
||||
|
||||
app.UseErrorPage(new ErrorPageOptions()
|
||||
{
|
||||
ShowCookies = true,
|
||||
ShowEnvironment = true,
|
||||
ShowExceptionDetails = true,
|
||||
ShowHeaders = true,
|
||||
ShowQuery = true,
|
||||
ShowSourceCode = true
|
||||
});
|
||||
app.UseErrorPage(ErrorPageOptions.ShowAll);
|
||||
|
||||
app.UseFileServer();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue