mirror of
https://github.com/bitwarden/server.git
synced 2025-04-22 05:25:10 -05: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.UseMiddleware<CustomIpRateLimitMiddleware>();
|
||||||
}
|
}
|
||||||
|
|
||||||
app.UseDeveloperExceptionPage();
|
|
||||||
app.UseCookiePolicy();
|
|
||||||
if (env.IsDevelopment())
|
if (env.IsDevelopment())
|
||||||
{
|
{
|
||||||
|
app.UseDeveloperExceptionPage();
|
||||||
|
app.UseCookiePolicy();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add localization
|
// Add localization
|
||||||
|
Loading…
x
Reference in New Issue
Block a user