From 26528623d19505ef3f7d08346377f2a68f29c1be Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 18 Jul 2026 17:21:57 +0800 Subject: [PATCH] feat: Adjust the proxy middleware order --- .../services/LY.MicroService.Applications.Single/Program.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aspnet-core/services/LY.MicroService.Applications.Single/Program.cs b/aspnet-core/services/LY.MicroService.Applications.Single/Program.cs index f3025112c..6987cf383 100644 --- a/aspnet-core/services/LY.MicroService.Applications.Single/Program.cs +++ b/aspnet-core/services/LY.MicroService.Applications.Single/Program.cs @@ -41,10 +41,9 @@ var app = builder.Build(); await app.InitializeApplicationAsync(); +app.UseForwardedHeaders(); app.UseMapRequestLocalization(); - app.UseCookiePolicy(); -app.UseForwardedHeaders(); app.UseAbpSecurityHeaders(); if (app.Environment.IsDevelopment()) {