You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/blazor/components/render-modes.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
---
2
2
title: ASP.NET Core Blazor render modes
3
+
ai-usage: ai-assisted
3
4
author: guardrex
4
5
description: Learn about Blazor render modes and how to apply them in Blazor Web Apps.
5
6
monikerRange: '>= aspnetcore-8.0'
@@ -156,7 +157,7 @@ The <xref:Microsoft.AspNetCore.Components.Routing.Router> component propagates i
156
157
157
158
You also typically must set the same interactive render mode on the [`HeadOutlet` component](xref:blazor/components/control-head-content#headoutlet-component), which is also found in the `App` component of a Blazor Web App generated from the project template:
158
159
159
-
```
160
+
```razor
160
161
<HeadOutlet @rendermode="InteractiveServer" />
161
162
```
162
163
@@ -173,7 +174,7 @@ To enable global interactivity when creating a Blazor Web App:
|[Exception Handler](xref:fundamentals/error-handling-api?view=aspnetcore-6.0)| Globally handles exceptions thrown by the middleware pipeline. |<xref:Microsoft.AspNetCore.Builder.ExceptionHandlerExtensions.UseExceptionHandler%2A>|
50
-
|[Forwarded Headers](xref:fundamentals/middleware/index?view=aspnetcore-6.0#forwarded-headers-middleware-order)| Forwards proxied headers onto the current request. |<xref:Microsoft.AspNetCore.Builder.ForwardedHeadersExtensions.UseForwardedHeaders%2A>|
51
-
|[HTTPS Redirection](xref:security/enforcing-ssl?view=aspnetcore-6.0)| Redirects all HTTP requests to HTTPS. |<xref:Microsoft.AspNetCore.Builder.HttpsPolicyBuilderExtensions.UseHttpsRedirection%2A>|
52
-
|[HTTP Strict Transport Security (HSTS)](xref:fundamentals/middleware/index?view=aspnetcore-6.0#middleware-order)| Security enhancement middleware that adds a special response header. |<xref:Microsoft.AspNetCore.Builder.HstsBuilderExtensions.UseHsts%2A>|
53
-
|[Request Logging](xref:fundamentals/logging/index?view=aspnetcore-6.0)| Provides support for logging HTTP requests and responses. |<xref:Microsoft.AspNetCore.Builder.HttpLoggingBuilderExtensions.UseHttpLogging%2A>|
|[Exception Handler](xref:fundamentals/error-handling-api)| Globally handles exceptions thrown by the middleware pipeline. |<xref:Microsoft.AspNetCore.Builder.ExceptionHandlerExtensions.UseExceptionHandler%2A>|
50
+
|[Forwarded Headers](xref:fundamentals/middleware/index#forwarded-headers-middleware-order)| Forwards proxied headers onto the current request. |<xref:Microsoft.AspNetCore.Builder.ForwardedHeadersExtensions.UseForwardedHeaders%2A>|
51
+
|[HTTPS Redirection](xref:security/enforcing-ssl)| Redirects all HTTP requests to HTTPS. |<xref:Microsoft.AspNetCore.Builder.HttpsPolicyBuilderExtensions.UseHttpsRedirection%2A>|
52
+
|[HTTP Strict Transport Security (HSTS)](xref:fundamentals/middleware/index#middleware-order)| Security enhancement middleware that adds a special response header. |<xref:Microsoft.AspNetCore.Builder.HstsBuilderExtensions.UseHsts%2A>|
53
+
|[Request Logging](xref:fundamentals/logging/index)| Provides support for logging HTTP requests and responses. |<xref:Microsoft.AspNetCore.Builder.HttpLoggingBuilderExtensions.UseHttpLogging%2A>|
54
54
|[Request Timeouts](xref:performance/timeouts)| Provides support for configuring request timeouts, global default and per endpoint. |`UseRequestTimeouts`|
55
55
|[W3C Request Logging](https://www.w3.org/TR/WD-logfile.html)| Provides support for logging HTTP requests and responses in the [W3C format](https://www.w3.org/TR/WD-logfile.html). |<xref:Microsoft.AspNetCore.Builder.HttpLoggingBuilderExtensions.UseW3CLogging%2A>|
56
56
|[Response Caching](xref:performance/caching/middleware)| Provides support for caching responses. |<xref:Microsoft.AspNetCore.Builder.ResponseCachingExtensions.UseResponseCaching%2A>|
@@ -301,14 +301,14 @@ allows unauthenticated users to access endpoints:
301
301
302
302
## CORS
303
303
304
-
Routes can be [CORS](xref:security/cors?view=aspnetcore-6.0) enabled using [CORS policies](xref:security/cors?view=aspnetcore-6.0#cors-policy-options). CORS can be declared via the [`[EnableCors]`](xref:Microsoft.AspNetCore.Cors.EnableCorsAttribute) attribute or by using the
304
+
Routes can be [CORS](xref:security/cors) enabled using [CORS policies](xref:security/cors#cors-policy-options). CORS can be declared via the [`[EnableCors]`](xref:Microsoft.AspNetCore.Cors.EnableCorsAttribute) attribute or by using the
305
305
<xref:Microsoft.AspNetCore.Builder.CorsEndpointConventionBuilderExtensions.RequireCors%2A> method. The following samples enable CORS:
Copy file name to clipboardExpand all lines: aspnetcore/security/authentication/passkeys/blazor.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -187,7 +187,7 @@ dotnet ef database update
187
187
188
188
## Create passkey model classes
189
189
190
-
Add the following model classes to the project in the `Components/Account` folder with `BlazorWebCSharp._1.Components.Account` namespace updates for the app (for example: `Contoso.Components.Account`):
190
+
Add the following model classes to the project in the `Components/Account` folder and update the `BlazorWebCSharp._1.Components.Account` namespace to match the app (for example: `Contoso.Components.Account`):
191
191
192
192
*[`Components/Account/PasskeyInputModel.cs`](https://github.com/dotnet/aspnetcore/blob/main/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/Components/Account/PasskeyInputModel.cs): Holds the JSON passkey credential for passkey sign-in operations (`Login` component) and adding passkeys (`Passkeys` component).
193
193
*[`Components/Account/PasskeyOperation.cs`](https://github.com/dotnet/aspnetcore/blob/main/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/Components/Account/PasskeyOperation.cs): Defines the authentication action to be performed (`PassKeySubmit` component), either registering a new passkey (`Create`/0) or authenticating with an existing passkey (`Request`/1).
0 commit comments