CorsPolicyBuilder.WithExposedHeaders(String[]) CorsPolicyBuilder.WithExposedHeaders(String[]) CorsPolicyBuilder.WithExposedHeaders(String[]) Method

Definition

Adds the specified exposedHeaders to the policy.

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

Parameters

exposedHeaders
String[]

The headers which need to be exposed to the client.

Returns

Applies to