CorsPolicyBuilder.SetIsOriginAllowedToAllowWildcardSubdomains Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.