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

返回

当前策略生成器。

适用于