1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 00:22:50 -05:00

UseForwardedHeadersForAzure

This commit is contained in:
Kyle Spearrin
2017-07-21 12:53:26 -04:00
parent 64212a1874
commit f598b78ecb
5 changed files with 39 additions and 1 deletions

View File

@ -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();
}
}