diff --git a/Bootstrap.Client/Startup.cs b/Bootstrap.Client/Startup.cs
index ed3c4914..a8f0e8db 100644
--- a/Bootstrap.Client/Startup.cs
+++ b/Bootstrap.Client/Startup.cs
@@ -4,6 +4,7 @@ using Longbow.Web.SignalR;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
+using Microsoft.AspNetCore.HttpOverrides;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
@@ -14,12 +15,12 @@ using System;
namespace Bootstrap.Client
{
///
- ///
+ /// Startup 启动配置文件
///
public class Startup
{
///
- ///
+ /// 构造函数
///
///
public Startup(IConfiguration configuration)
@@ -28,13 +29,13 @@ namespace Bootstrap.Client
}
///
- ///
+ /// 获得 系统配置项 Iconfiguration 实例
///
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
///
- ///
+ /// 服务容器注入方法
///
///
public void ConfigureServices(IServiceCollection services)
@@ -71,12 +72,13 @@ namespace Bootstrap.Client
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
///
- ///
+ /// 管道构建方法
///
///
///
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
+ app.UseForwardedHeaders(new ForwardedHeadersOptions() { ForwardedHeaders = ForwardedHeaders.All });
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();