Skip to content

Commit cad29d1

Browse files
authored
Enhance security guidance for static SSR in Blazor
Added information about configuring CookieAuthenticationOptions for handling unauthorized requests during static SSR.
1 parent 243643e commit cad29d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aspnetcore/blazor/security/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ Although the <xref:Microsoft.AspNetCore.Components.Authorization.AuthorizeView>
12011201

12021202
:::moniker range=">= aspnetcore-8.0"
12031203

1204-
Razor components of Blazor Web Apps never display `<NotAuthorized>` content when authorization fails server-side during static server-side rendering (static SSR). The server-side ASP.NET Core pipeline processes authorization on the server. Use server-side techniques to handle unauthorized requests. For more information, see <xref:blazor/components/render-modes#static-server-side-rendering-static-ssr>.
1204+
Razor components of Blazor Web Apps never display `<NotAuthorized>` content when authorization fails server-side during static server-side rendering (static SSR). The server-side ASP.NET Core pipeline processes authorization on the server. Use server-side techniques like configuring <xref:Microsoft.AspNetCore.Cookies.CookieAuthenticationOptions.LoginPath%2A> to handle unauthorized requests. For more information, see <xref:blazor/components/render-modes#static-server-side-rendering-static-ssr>.
12051205

12061206
:::moniker-end
12071207

0 commit comments

Comments
 (0)