mirror of
https://github.com/bitwarden/server.git
synced 2025-02-01 23:31:41 +01:00
UseDeveloperExceptionPage only on dev
This commit is contained in:
parent
ed99b99bc1
commit
1c8744e4eb
@ -165,10 +165,10 @@ namespace Bit.Identity
|
||||
app.UseMiddleware<CustomIpRateLimitMiddleware>();
|
||||
}
|
||||
|
||||
app.UseDeveloperExceptionPage();
|
||||
app.UseCookiePolicy();
|
||||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
app.UseCookiePolicy();
|
||||
}
|
||||
|
||||
// Add localization
|
||||
|
Loading…
Reference in New Issue
Block a user