remove app.UseAntiForgery as it is handled by the IAntiforgery service
This commit is contained in:
parent
44c088c96d
commit
177d015fc6
|
@ -206,7 +206,6 @@ namespace Oqtane
|
||||||
app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/" + Constants.Version + "/swagger.json", Constants.PackageId + " " + Constants.Version); });
|
app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/" + Constants.Version + "/swagger.json", Constants.PackageId + " " + Constants.Version); });
|
||||||
}
|
}
|
||||||
|
|
||||||
//app.UseAntiforgery();
|
|
||||||
app.UseEndpoints(endpoints =>
|
app.UseEndpoints(endpoints =>
|
||||||
{
|
{
|
||||||
endpoints.MapControllers();
|
endpoints.MapControllers();
|
||||||
|
@ -219,6 +218,7 @@ namespace Oqtane
|
||||||
.AddInteractiveWebAssemblyRenderMode();
|
.AddInteractiveWebAssemblyRenderMode();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// simulate the fallback routing approach of traditional Blazor - allowing the custom SiteRouter to handle all routing concerns
|
||||||
app.UseEndpoints(endpoints =>
|
app.UseEndpoints(endpoints =>
|
||||||
{
|
{
|
||||||
endpoints.MapFallback();
|
endpoints.MapFallback();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user