CorsPolicyBuilder.DisallowCredentials 方法

定义

将策略设置为不允许凭据。

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

返回

当前策略生成器。

适用于