mirror of
https://github.com/bitwarden/server
synced 2026-01-06 10:34:01 +00: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