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

返回

当前策略生成器。

适用于