|
|
@@ -167,6 +167,8 @@ public class Startup : AppStartup
|
|
|
|
|
|
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
|
|
{
|
|
|
+ app.UseForwardedHeaders();
|
|
|
+
|
|
|
if (env.IsDevelopment())
|
|
|
{
|
|
|
app.UseDeveloperExceptionPage();
|
|
|
@@ -177,11 +179,6 @@ public class Startup : AppStartup
|
|
|
app.UseHsts();
|
|
|
}
|
|
|
|
|
|
- app.UseForwardedHeaders(new ForwardedHeadersOptions
|
|
|
- {
|
|
|
- ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto
|
|
|
- });
|
|
|
-
|
|
|
app.Use(async (context, next) =>
|
|
|
{
|
|
|
context.Response.Headers.Add("Admin.NET", "Admin.NET");
|