I want to migrate my .NET 7 Blazor Server solution to .NET 8 Blazor Web App template.
When I first time come to the page everything is ok, when I refresh the page I get an error.
Access to host localhost is denied.
You do not have user rights to view this page.
HTTP 403 ERROR
Here is my sample project.
https://easyupload.io/5oejk7
If anyone has already faced something like that any help is more than welcome.
What I realized is that CustomServerAuthenticationStateProvider is not triggered on page refresh. I was checking already everywhere and checking a lot of different approaches but none of them work, so I can’t figure out what I need to do to solve that.