Share via


CorsPolicyBuilder.SetIsOriginAllowedToAllowWildcardSubdomains Method

Definition

Sets the IsOriginAllowed property of the policy to be a function that allows origins to match a configured wildcarded domain when evaluating if the origin is allowed.

public:
 Microsoft::AspNetCore::Cors::Infrastructure::CorsPolicyBuilder ^ SetIsOriginAllowedToAllowWildcardSubdomains();
public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder SetIsOriginAllowedToAllowWildcardSubdomains ();
member this.SetIsOriginAllowedToAllowWildcardSubdomains : unit -> Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder
Public Function SetIsOriginAllowedToAllowWildcardSubdomains () As CorsPolicyBuilder

Returns

The current policy builder.

Applies to