Del via


RouteConfig.CorsPolicy Property

Definition

The name of the CorsPolicy to apply to this route. If not set then the route won't be automatically matched for cors preflight requests. Set to "Default" to enable cors with the default policy. Set to "Disable" to refuses cors requests for this route.

public string? CorsPolicy { get; init; }
member this.CorsPolicy : string with get, set
Public Property CorsPolicy As String

Property Value

Applies to