Revert "Added Forwarding fix for swagger behind a reverse proxy"
This reverts commit 74c78504aa
This commit is contained in:
parent
74c78504aa
commit
f2e5ac954a
|
@ -2,7 +2,6 @@ using System;
|
|||
using System.Text.Json.Serialization;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.AspNetCore.HttpOverrides;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
@ -38,10 +37,6 @@ namespace ScrumTaskboard
|
|||
.UseNpgsql(GetConnectionString())
|
||||
.Options));
|
||||
services.AddControllers();
|
||||
services.Configure<ForwardedHeadersOptions>(options =>
|
||||
{
|
||||
options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;
|
||||
});
|
||||
services.AddOpenApiDocument(
|
||||
config =>
|
||||
{
|
||||
|
@ -71,10 +66,6 @@ namespace ScrumTaskboard
|
|||
|
||||
//app.UseHttpsRedirection();
|
||||
app.UseCors("AllowAll");
|
||||
app.UseForwardedHeaders(new ForwardedHeadersOptions
|
||||
{
|
||||
ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto
|
||||
});
|
||||
|
||||
app.UseRouting();
|
||||
|
||||
|
|
Loading…
Reference in New Issue