Skip to content

Commit

Permalink
Try resolve possible issue with reverse proxy defaults.
Browse files Browse the repository at this point in the history
  • Loading branch information
Layoric committed Oct 2, 2023
1 parent a836733 commit ce5a5d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Gallery.Unified/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Net;
using Microsoft.AspNetCore.Mvc;
using MyApp;
using MyApp.Client;
using MyApp.Data;
Expand All @@ -11,7 +12,10 @@
.AddWebAssemblyComponents();

builder.Services.AddControllersWithViews();
builder.Services.AddRazorPages();
builder.Services.AddRazorPages(o =>
{
o.Conventions.ConfigureFilter(new IgnoreAntiforgeryTokenAttribute());
});
// builder.Services.AddScoped<BlazorWasmAuthContext>();
// builder.Services.AddScoped<BlazorServerAuthContext>();
// builder.Services.AddScoped<ServiceStackStateProvider>();
Expand Down

0 comments on commit ce5a5d0

Please sign in to comment.