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

Blazor 9 WASM Logout throws AntiforgeryValidationException

$
0
0

I created a straight-from-the-template Blazor 9 WASM Web App with Authentication type set to Individual Accounts, and Global Webassembly interaction.

The only change I made was to swap in Microsoft.EntityFrameworkCore.InMemory.

When I run the app, I can register and log in fine.

However, when I hit the "Logout" link, it navigates to "Account/Logout" which has the following exception:

AntiforgeryValidationException: The required antiforgery request token was not provided in either form field "__RequestVerificationToken" or header value "RequestVerificationToken".

BadHttpRequestException: Invalid anti-forgery token found when reading parameter "string returnUrl" from the request body as form.

Does anyone know what the issue is?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



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