CorsPolicyBuilder.WithExposedHeaders(String[]) Método

Definição

Adiciona o especificado exposedHeaders à política.

public:
 Microsoft::AspNetCore::Cors::Infrastructure::CorsPolicyBuilder ^ WithExposedHeaders(... cli::array <System::String ^> ^ exposedHeaders);
public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder WithExposedHeaders (params string[] exposedHeaders);
member this.WithExposedHeaders : string[] -> Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder
Public Function WithExposedHeaders (ParamArray exposedHeaders As String()) As CorsPolicyBuilder

Parâmetros

exposedHeaders
String[]

Os cabeçalhos que precisam ser expostos ao cliente.

Retornos

O construtor de políticas atual.

Aplica-se a