共用方式為


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

傳回

目前的原則產生器。

適用於