Merge pull request #3712 from sbwalker/dev

remove app.UseAntiForgery as it is handled by the IAntiforgery service
This commit is contained in:
Shaun Walker
2024-01-31 16:21:37 -05:00
committed by GitHub

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