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

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 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>