diff --git a/Gallery.Unified/Program.cs b/Gallery.Unified/Program.cs index 84dd110..8c02114 100644 --- a/Gallery.Unified/Program.cs +++ b/Gallery.Unified/Program.cs @@ -1,4 +1,5 @@ using System.Net; +using Microsoft.AspNetCore.Mvc; using MyApp; using MyApp.Client; using MyApp.Data; @@ -11,7 +12,10 @@ .AddWebAssemblyComponents(); builder.Services.AddControllersWithViews(); -builder.Services.AddRazorPages(); +builder.Services.AddRazorPages(o => +{ + o.Conventions.ConfigureFilter(new IgnoreAntiforgeryTokenAttribute()); +}); // builder.Services.AddScoped(); // builder.Services.AddScoped(); // builder.Services.AddScoped();