Skip to content

Commit 5bd31bc

Browse files
authored
Merge pull request #294 from telerik/blazing-coffee-disable-antiforgery
chore: blazing coffee disable antiforgery
2 parents 0fce8fc + 1a92764 commit 5bd31bc

File tree

1 file changed

+1
-3
lines changed
  • sample-applications/blazing-coffee/BlazingCoffee/Server

1 file changed

+1
-3
lines changed

sample-applications/blazing-coffee/BlazingCoffee/Server/Startup.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,11 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
5656

5757
app.UseRouting();
5858

59-
app.UseAntiforgery();
60-
6159
app.UseEndpoints(endpoints =>
6260
{
6361
endpoints.MapRazorPages();
6462
endpoints.MapControllers();
65-
endpoints.MapRazorComponents<Client.Host>().AddInteractiveWebAssemblyRenderMode();
63+
endpoints.MapRazorComponents<Client.Host>().AddInteractiveWebAssemblyRenderMode().DisableAntiforgery();
6664
});
6765
}
6866
}

0 commit comments

Comments
 (0)