CorsPolicyBuilder.WithExposedHeaders(String[]) Metodo

Definizione

Aggiunge l'oggetto specificato exposedHeaders al criterio.

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

Parametri

exposedHeaders
String[]

Intestazioni che devono essere esposte al client.

Restituisce

Generatore di criteri corrente.

Si applica a