remove app.UseAntiForgery as it is handled by the IAntiforgery service

This commit is contained in:
sbwalker 2024-01-31 16:21:23 -05:00
parent 44c088c96d
commit 177d015fc6

View File

@ -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();