   &lt;LayoutView Layout="@typeof(MainLayout)"&gt;
            &lt;p&gt;Sorry, there's nothing at this address.&lt;/p&gt;
        &lt;/LayoutView&gt;
    &lt;/NotFound&gt;
&lt;/Router&gt;</pre>
<p>To do the authorization for a component, add the <code>@attribute</code> directive to use the <code>Authorize</code> attribute.</p>
<pre class="code" language="razor">@attribute [Authorize]</pre>
<p>If you don't specify any parameters then by default, Blazor Server will require the user to complete the authenticat