Social Media Preview Fix
All checks were successful
Build and deploy / Publish image (push) Successful in 18m15s

This commit is contained in:
2025-03-17 21:40:38 +03:00
parent 5844bcae1e
commit 255c372709
2 changed files with 1 additions and 6 deletions

View File

@@ -24,12 +24,7 @@ builder.Services.AddControllersWithViews(options =>
}).AddMicrosoftIdentityUI().AddDataAnnotationsLocalization();
builder.Services.Configure<ForwardedHeadersOptions>(options =>
{
options.RequireHeaderSymmetry = false;
options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;
// TODO : it's a bit unsafe to allow all Networks and Proxies...
options.KnownNetworks.Clear();
options.KnownProxies.Clear();
});
var baseDirectory = AppDomain.CurrentDomain.BaseDirectory;