From 8a7fdda262fd9970aaa5a9a976da1f4bfb8e4b0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Tue, 26 Apr 2016 16:54:29 +0200 Subject: [PATCH] Remove the forwarded headers middleware --- samples/Mvc.Client/Startup.cs | 5 ----- samples/Mvc.Client/project.json | 1 - samples/Mvc.Server/Startup.cs | 5 ----- samples/Mvc.Server/project.json | 1 - 4 files changed, 12 deletions(-) diff --git a/samples/Mvc.Client/Startup.cs b/samples/Mvc.Client/Startup.cs index 8578ad69..169ddd25 100644 --- a/samples/Mvc.Client/Startup.cs +++ b/samples/Mvc.Client/Startup.cs @@ -1,7 +1,6 @@ using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.HttpOverrides; using Microsoft.Extensions.DependencyInjection; using Microsoft.IdentityModel.Protocols.OpenIdConnect; @@ -16,10 +15,6 @@ namespace Mvc.Client { } public void Configure(IApplicationBuilder app) { - app.UseForwardedHeaders(new ForwardedHeadersOptions { - ForwardedHeaders = ForwardedHeaders.All - }); - app.UseDeveloperExceptionPage(); app.UseStaticFiles(); diff --git a/samples/Mvc.Client/project.json b/samples/Mvc.Client/project.json index ba298bb3..de829eed 100644 --- a/samples/Mvc.Client/project.json +++ b/samples/Mvc.Client/project.json @@ -10,7 +10,6 @@ "Microsoft.AspNetCore.Authentication.OpenIdConnect": "0.1.0-rc2-*", "Microsoft.AspNetCore.Diagnostics": "1.0.0-rc2-*", "Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-rc2-*", - "Microsoft.AspNetCore.HttpOverrides": "1.0.0-rc2-*", "Microsoft.AspNetCore.Hosting": "1.0.0-rc2-*", "Microsoft.AspNetCore.Mvc": "1.0.0-rc2-*", "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-rc2-*", diff --git a/samples/Mvc.Server/Startup.cs b/samples/Mvc.Server/Startup.cs index 5e932cda..74de51d3 100644 --- a/samples/Mvc.Server/Startup.cs +++ b/samples/Mvc.Server/Startup.cs @@ -2,7 +2,6 @@ using System.Linq; using AspNet.Security.OAuth.GitHub; using CryptoHelper; using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.HttpOverrides; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; @@ -40,10 +39,6 @@ namespace Mvc.Server { } public void Configure(IApplicationBuilder app) { - app.UseForwardedHeaders(new ForwardedHeadersOptions { - ForwardedHeaders = ForwardedHeaders.All - }); - app.UseDeveloperExceptionPage(); app.UseStaticFiles(); diff --git a/samples/Mvc.Server/project.json b/samples/Mvc.Server/project.json index 54af75cf..bc710a8a 100644 --- a/samples/Mvc.Server/project.json +++ b/samples/Mvc.Server/project.json @@ -13,7 +13,6 @@ "Microsoft.AspNetCore.Authentication.Twitter": "1.0.0-rc2-*", "Microsoft.AspNetCore.Diagnostics": "1.0.0-rc2-*", "Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-rc2-*", - "Microsoft.AspNetCore.HttpOverrides": "1.0.0-rc2-*", "Microsoft.AspNetCore.Mvc": "1.0.0-rc2-*", "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-rc2-*", "Microsoft.AspNetCore.Server.Kestrel": "1.0.0-rc2-*",