mirror of
https://github.com/Radarr/Radarr
synced 2025-12-06 08:28:50 +01:00
Fixed: Another attempted fix on ODIC correlation error
This commit is contained in:
parent
76bed80060
commit
0aebd90ac9
1 changed files with 6 additions and 5 deletions
|
|
@ -61,6 +61,11 @@ public void ConfigureServices(IServiceCollection services)
|
||||||
options.KnownProxies.Clear();
|
options.KnownProxies.Clear();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
services.Configure<CookiePolicyOptions>(options =>
|
||||||
|
{
|
||||||
|
options.Secure = CookieSecurePolicy.Always;
|
||||||
|
});
|
||||||
|
|
||||||
services.AddRouting(options => options.LowercaseUrls = true);
|
services.AddRouting(options => options.LowercaseUrls = true);
|
||||||
|
|
||||||
services.AddResponseCompression(options => options.EnableForHttps = true);
|
services.AddResponseCompression(options => options.EnableForHttps = true);
|
||||||
|
|
@ -252,11 +257,6 @@ public void Configure(IApplicationBuilder app,
|
||||||
}
|
}
|
||||||
|
|
||||||
app.UseForwardedHeaders();
|
app.UseForwardedHeaders();
|
||||||
app.UseCookiePolicy(new CookiePolicyOptions
|
|
||||||
{
|
|
||||||
Secure = CookieSecurePolicy.Always,
|
|
||||||
MinimumSameSitePolicy = SameSiteMode.None
|
|
||||||
});
|
|
||||||
app.UseMiddleware<LoggingMiddleware>();
|
app.UseMiddleware<LoggingMiddleware>();
|
||||||
app.UsePathBase(new PathString(configFileProvider.UrlBase));
|
app.UsePathBase(new PathString(configFileProvider.UrlBase));
|
||||||
app.UseExceptionHandler(new ExceptionHandlerOptions
|
app.UseExceptionHandler(new ExceptionHandlerOptions
|
||||||
|
|
@ -265,6 +265,7 @@ public void Configure(IApplicationBuilder app,
|
||||||
ExceptionHandler = errorHandler.HandleException
|
ExceptionHandler = errorHandler.HandleException
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.UseCookiePolicy();
|
||||||
app.UseRouting();
|
app.UseRouting();
|
||||||
app.UseCors();
|
app.UseCors();
|
||||||
app.UseAuthentication();
|
app.UseAuthentication();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue