mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05:00
UseForwardedHeadersForAzure
This commit is contained in:
@ -10,6 +10,7 @@ using Bit.Core.Utilities;
|
||||
using Serilog.Events;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||
using Microsoft.AspNetCore.HttpOverrides;
|
||||
|
||||
namespace Bit.Billing
|
||||
{
|
||||
@ -69,6 +70,12 @@ namespace Bit.Billing
|
||||
app.UseDeveloperExceptionPage();
|
||||
}
|
||||
|
||||
// Forwarded headers
|
||||
if(!env.IsDevelopment())
|
||||
{
|
||||
app.UseForwardedHeadersForAzure();
|
||||
}
|
||||
|
||||
app.UseMvc();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user