Share via


CorsPolicyBuilder.DisallowCredentials Method

Definition

Sets the policy to not allow credentials.

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

Returns

The current policy builder.

Applies to