mirror of
https://github.com/bitwarden/server.git
synced 2025-07-12 13:19:01 -05:00
UseForwardedHeadersForAzure
This commit is contained in:
@ -7,6 +7,7 @@ using Microsoft.Extensions.Configuration;
|
||||
using Bit.Core;
|
||||
using Bit.Core.Utilities;
|
||||
using Serilog.Events;
|
||||
using Microsoft.AspNetCore.HttpOverrides;
|
||||
|
||||
namespace Bit.Identity
|
||||
{
|
||||
@ -72,6 +73,12 @@ namespace Bit.Identity
|
||||
.AddConsole()
|
||||
.AddDebug();
|
||||
|
||||
// Forwarded headers
|
||||
if(!env.IsDevelopment())
|
||||
{
|
||||
app.UseForwardedHeadersForAzure();
|
||||
}
|
||||
|
||||
// Add IdentityServer to the request pipeline.
|
||||
app.UseIdentityServer();
|
||||
}
|
||||
|
Reference in New Issue
Block a user