How to add custom request headers in Blazor NavigationManager.NavigateTo
I have a Blazor Server Assembly in .NET 8, and I would like to redirect the browser to pages but add custom headers to the HTTP request the browser would make, in order to pass certain parameters that are not blatantly visible like on the query string.
Blazor isn’t using my component for redirecting unauthorized users
I’m trying to implement authorization in a .NET 8 Blazor server-side app. When a user isn’t logged in and tries to access a page that requires authorization, I want to redirect to the login page. I did the same thing the default Blazor Web App template with “Individual Accounts” does but used a different URI. But my URI is ignored and the redirect goes to /Account/Login. Am I misinterpreting what <NotAuthorized>
does?