From 177d015fc63a6a63cf355f322c032cd92a4de371 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Wed, 31 Jan 2024 16:21:23 -0500 Subject: [PATCH] remove app.UseAntiForgery as it is handled by the IAntiforgery service --- Oqtane.Server/Startup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Oqtane.Server/Startup.cs b/Oqtane.Server/Startup.cs index 1622efcd..c0b48575 100644 --- a/Oqtane.Server/Startup.cs +++ b/Oqtane.Server/Startup.cs @@ -206,7 +206,6 @@ namespace Oqtane app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/" + Constants.Version + "/swagger.json", Constants.PackageId + " " + Constants.Version); }); } - //app.UseAntiforgery(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); @@ -219,6 +218,7 @@ namespace Oqtane .AddInteractiveWebAssemblyRenderMode(); }); + // simulate the fallback routing approach of traditional Blazor - allowing the custom SiteRouter to handle all routing concerns app.UseEndpoints(endpoints => { endpoints.MapFallback();