Skip to content

Latest commit

 

History

History
70 lines (43 loc) · 2.52 KB

aspnetcore-10.0.md

File metadata and controls

70 lines (43 loc) · 2.52 KB
title author description ms.author ms.custom ms.date uid
What's new in ASP.NET Core 10.0
rick-anderson
Learn about the new features in ASP.NET Core 10.0.
riande
mvc
3/5/2025
aspnetcore-10

What's new in ASP.NET Core 10.0

This article highlights the most significant changes in ASP.NET Core 10.0 with links to relevant documentation.

This article will be updated as new preview releases are made available. See the Asp.Net Core announcement page until this page is updated.

Blazor

This section describes new features for Blazor.

[!INCLUDE]

SignalR

This section describes new features for SignalR.

Minimal APIs

This section describes new features for minimal APIs.

OpenAPI

This section describes new features for OpenAPI.

[!INCLUDE]

[!INCLUDE]

Authentication and authorization

This section describes new features for authentication and authorization.

Miscellaneous

This section describes miscellaneous new features in ASP.NET Core 10.0.

[!INCLUDE]

Detect if URL is local using RedirectHttpResult.IsLocalUrl

Use the new RedirectHttpResult.IsLocalUrl(url) helper method to detect if a URL is local. A URL is considered local if the following are true:

URLs using virtual paths "~/" are also local.

IsLocalUrl is useful for validating URLs before redirecting to them to prevent open redirection attacks.

if (RedirectHttpResult.IsLocalUrl(url))
{
    return Results.LocalRedirect(url);
}

Thank you @martincostello for this contribution!

Related content