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

返回

CorsPolicyBuilder

当前策略生成器。

适用于