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 System.Text.Json.Serialization;
|
||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.AspNetCore.HttpOverrides;
|
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
@ -38,10 +37,6 @@ namespace ScrumTaskboard
|
||||||
.UseNpgsql(GetConnectionString())
|
.UseNpgsql(GetConnectionString())
|
||||||
.Options));
|
.Options));
|
||||||
services.AddControllers();
|
services.AddControllers();
|
||||||
services.Configure<ForwardedHeadersOptions>(options =>
|
|
||||||
{
|
|
||||||
options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;
|
|
||||||
});
|
|
||||||
services.AddOpenApiDocument(
|
services.AddOpenApiDocument(
|
||||||
config =>
|
config =>
|
||||||
{
|
{
|
||||||
|
@ -71,10 +66,6 @@ namespace ScrumTaskboard
|
||||||
|
|
||||||
//app.UseHttpsRedirection();
|
//app.UseHttpsRedirection();
|
||||||
app.UseCors("AllowAll");
|
app.UseCors("AllowAll");
|
||||||
app.UseForwardedHeaders(new ForwardedHeadersOptions
|
|
||||||
{
|
|
||||||
ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto
|
|
||||||
});
|
|
||||||
|
|
||||||
app.UseRouting();
|
app.UseRouting();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue