共用方式為


CorsPolicyBuilder.WithExposedHeaders(String[]) 方法

定義

將指定的 exposedHeaders 加入至原則。

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

參數

exposedHeaders
String[]

需要向用戶端公開的標頭。

傳回

目前的原則產生器。

適用於