Browse Source

Remove the forwarded headers middleware

pull/95/head
Kévin Chalet 10 years ago
parent
commit
8a7fdda262
  1. 5
      samples/Mvc.Client/Startup.cs
  2. 1
      samples/Mvc.Client/project.json
  3. 5
      samples/Mvc.Server/Startup.cs
  4. 1
      samples/Mvc.Server/project.json

5
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();

1
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-*",

5
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();

1
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-*",

Loading…
Cancel
Save