共用方式為


CorsPolicyBuilder.AllowCredentials 方法

定義

設定原則以允許認證。

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

傳回

目前的原則產生器。

適用於