共用方式為


CorsPolicyBuilder.SetIsOriginAllowedToAllowWildcardSubdomains 方法

定義

將原則 IsOriginAllowed 的 屬性設定為函式,讓來源在評估是否允許來源時比對已設定的萬用字元定義域。

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

傳回

目前的原則產生器。

適用於