Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4175

Blazor -valid antiforgery token was not provided with the request. Add an antiforgery token, or disable antiforgery validation for this endpoint

$
0
0

I created a Microsoft Teams app using Razor components and have configured the following it, but still receive an antiforgery token error.In Program.cs

app.UseAuthentication();app.UseAuthorization();app.UseAntiforgery();app.MapRazorComponents<App>()    .AddInteractiveServerRenderMode();

I have also added the tag <AntiforgeryToken/> to my .razor page.


Viewing all articles
Browse latest Browse all 4175

Trending Articles