CorsPolicyBuilder.WithExposedHeaders(String[]) Methode

Definition

Fügt der Richtlinie das angegebene exposedHeaders hinzu.

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

Parameter

exposedHeaders
String[]

Die Header, die für den Client verfügbar gemacht werden müssen.

Gibt zurück

Der aktuelle Richtlinien-Generator.

Gilt für: