CorsPolicyBuilder.AllowCredentials Method

Definition

Sets the policy to allow credentials.

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

Returns

CorsPolicyBuilder

The current policy builder.

Applies to