.netblazor

Unable to Override <NotAuthorized> in Blazor WebAssembly from app.razor


I'm working on a Blazor WebAssembly project and I'm trying to customize the behavior of the component in my "Register component". Somehow I can't overwrite the app.razor given value of NotAuthorized Code


Solution

  • The solution to this problem was to add the

    @using Microsoft.AspNetCore.Authorization on the component or in _import.razor