Bagikan melalui


CorsPolicyBuilder.WithExposedHeaders(String[]) Metode

Definisi

Menambahkan yang ditentukan exposedHeaders ke kebijakan.

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[]

Header yang perlu diekspos ke klien.

Mengembalikan

Penyusun kebijakan saat ini.

Berlaku untuk